tbrehm
2009-11-19 b8f157327495c5bf789048c6746e09c3ac220a76
Removed magic_quotes_runtime for compatibility with PHP 6
2 files modified
12 ■■■■ changed files
interface/lib/classes/tpl.inc.php 6 ●●●● patch | view | raw | blame | history
server/lib/classes/tpl.inc.php 6 ●●●● patch | view | raw | blame | history
interface/lib/classes/tpl.inc.php
@@ -1226,10 +1226,10 @@
         */
        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;
        }
server/lib/classes/tpl.inc.php
@@ -1339,10 +1339,10 @@
         * @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;
        }