Remove used of get_magic_quotes_gpc returns false since php 5.4

- Call function start() as static.
pull/2487/head
jmontoyaa 8 years ago
parent b5f169b195
commit ea1515f14c
  1. 12
      main/inc/global.inc.php

@ -207,16 +207,7 @@ $charset = 'UTF-8';
\Patchwork\Utf8\Bootup::initAll();
// Start session after the internationalization library has been initialized.
ChamiloSession::instance()->start($alreadyInstalled);
// Remove quotes added by PHP - get_magic_quotes_gpc() is deprecated in PHP 5 see #2970
if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) {
array_walk_recursive_limited($_GET, 'stripslashes', true);
array_walk_recursive_limited($_POST, 'stripslashes', true);
array_walk_recursive_limited($_COOKIE, 'stripslashes', true);
array_walk_recursive_limited($_REQUEST, 'stripslashes', true);
}
ChamiloSession::start($alreadyInstalled);
// access_url == 1 is the default chamilo location
if ($_configuration['access_url'] != 1) {
@ -335,7 +326,6 @@ foreach ($configurationFiles as $file) {
}
}
/* LOAD LANGUAGE FILES SECTION */
// if we use the javascript version (without go button) we receive a get

Loading…
Cancel
Save