Skip to content

Commit

Permalink
Don't use deprecated __autoload
Browse files Browse the repository at this point in the history
Fixes #23710
  • Loading branch information
atrol authored and vboctor committed Dec 23, 2017
1 parent 16b4334 commit 0c535cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core.php
Expand Up @@ -159,7 +159,7 @@ function http_is_protocol_https() {
* @param string $p_class Class name being autoloaded.
* @return void
*/
function __autoload( $p_class ) {
function autoload_mantis( $p_class ) {
global $g_class_path;
global $g_library_path;

Expand All @@ -179,7 +179,7 @@ function __autoload( $p_class ) {
}

# Register the autoload function to make it effective immediately
spl_autoload_register( '__autoload' );
spl_autoload_register( 'autoload_mantis' );

# Load UTF8-capable string functions
define( 'UTF8', $g_library_path . 'utf8' );
Expand Down

0 comments on commit 0c535cf

Please sign in to comment.