Skip to content

Commit

Permalink
[unlcms#955] Update SimpleCAS to latest
Browse files Browse the repository at this point in the history
ericras committed Dec 11, 2019
1 parent a4663e9 commit b00f095
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions sites/all/libraries/SimpleCAS/Autoload.php
Original file line number Diff line number Diff line change
@@ -31,19 +31,15 @@ function SimpleCAS_Autoload($class)
}

// set up __autoload
if (function_exists('spl_autoload_register')) {
if (!($_____t = spl_autoload_functions()) || !in_array('SimpleCAS_Autoload', spl_autoload_functions())) {
spl_autoload_register('SimpleCAS_Autoload');
if (function_exists('__autoload') && ($_____t === false)) {
// __autoload() was being used, but now would be ignored, add
// it to the autoload stack
spl_autoload_register('__autoload');
}
}
unset($_____t);
} elseif (!function_exists('__autoload')) {
function __autoload($class) { return SimpleCAS_Autoload($class); }
if (!($_____t = spl_autoload_functions()) || !in_array('SimpleCAS_Autoload', spl_autoload_functions())) {
spl_autoload_register('SimpleCAS_Autoload');
if (function_exists('__autoload') && ($_____t === false)) {
// __autoload() was being used, but now would be ignored, add
// it to the autoload stack
spl_autoload_register('__autoload');
}
}
unset($_____t);

// set up include_path if it doesn't register our current location
$____paths = explode(PATH_SEPARATOR, get_include_path());

0 comments on commit b00f095

Please sign in to comment.