From b8f157327495c5bf789048c6746e09c3ac220a76 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Thu, 19 Nov 2009 12:49:05 +0000
Subject: [PATCH] Removed magic_quotes_runtime for compatibility with PHP 6

---
 interface/lib/classes/tpl.inc.php | 6 +++---
 server/lib/classes/tpl.inc.php    | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/interface/lib/classes/tpl.inc.php b/interface/lib/classes/tpl.inc.php
index a92200741..3bd310f24 100644
--- a/interface/lib/classes/tpl.inc.php
+++ b/interface/lib/classes/tpl.inc.php
@@ -1226,10 +1226,10 @@ if (!defined('vlibTemplateClassLoaded')) {
          */
         private function _intParse ()
         {
-            $mqrt = get_magic_quotes_runtime();
-            set_magic_quotes_runtime(0);
+            //$mqrt = get_magic_quotes_runtime();
+            //set_magic_quotes_runtime(0);
             $this->_tmplfilep = '?>'.$this->_getData($this->_tmplfilename).'<?php return true;';
-            set_magic_quotes_runtime($mqrt);
+            //set_magic_quotes_runtime($mqrt);
             return true;
         }
 
diff --git a/server/lib/classes/tpl.inc.php b/server/lib/classes/tpl.inc.php
index f64567f57..285fc66c8 100644
--- a/server/lib/classes/tpl.inc.php
+++ b/server/lib/classes/tpl.inc.php
@@ -1339,10 +1339,10 @@ if (!defined('vlibTemplateClassLoaded')) {
          * @return boolean true/false
          */
         function _intParse () {
-            $mqrt = get_magic_quotes_runtime();
-            set_magic_quotes_runtime(0);
+            //$mqrt = get_magic_quotes_runtime();
+            //set_magic_quotes_runtime(0);
             $this->_tmplfilep = '?>'.$this->_getData($this->_tmplfilename).'<?php return true;';
-            set_magic_quotes_runtime($mqrt);
+            //set_magic_quotes_runtime($mqrt);
             return true;
         }
 
-- 
GitLab