mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Fixed spaces with tabs in Core
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@113924 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b7d7a86b51
commit
febcc15c3a
@ -216,18 +216,15 @@ set_include_path(str_replace('.' . PATH_SEPARATOR, '.' . PATH_SEPARATOR
|
|||||||
* Class names are converted to lowercase for lookup to adhere to PHP's case-insensitive
|
* Class names are converted to lowercase for lookup to adhere to PHP's case-insensitive
|
||||||
* way of dealing with them.
|
* way of dealing with them.
|
||||||
*/
|
*/
|
||||||
function sapphire_autoload($className)
|
function sapphire_autoload($className) {
|
||||||
{
|
|
||||||
global $_CLASS_MANIFEST;
|
global $_CLASS_MANIFEST;
|
||||||
$lClassName = strtolower($className);
|
$lClassName = strtolower($className);
|
||||||
if(isset($_CLASS_MANIFEST[$lClassName])) include_once($_CLASS_MANIFEST[$lClassName]);
|
if(isset($_CLASS_MANIFEST[$lClassName])) include_once($_CLASS_MANIFEST[$lClassName]);
|
||||||
else if(isset($_CLASS_MANIFEST[$className])) include_once($_CLASS_MANIFEST[$className]);
|
else if(isset($_CLASS_MANIFEST[$className])) include_once($_CLASS_MANIFEST[$className]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
spl_autoload_register('sapphire_autoload');
|
spl_autoload_register('sapphire_autoload');
|
||||||
|
|
||||||
|
|
||||||
require_once("core/ManifestBuilder.php");
|
require_once("core/ManifestBuilder.php");
|
||||||
require_once("core/ClassInfo.php");
|
require_once("core/ClassInfo.php");
|
||||||
require_once('core/Object.php');
|
require_once('core/Object.php');
|
||||||
@ -426,5 +423,3 @@ function increase_time_limit_to($timeLimit = null) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user