0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-03-11 17:18:44 +00:00

adherence to fascist indentation standards

This commit is contained in:
Evan-R 2014-11-13 15:17:11 -07:00
parent 252deef75a
commit 5dbea6c41a

17
INSTALL
View File

@ -379,16 +379,15 @@ If you already have a reasonable autoloader set up for namespaced modules, eg,
something like this:
<?php
function __autoload_namespaced_module($class) {
$path = str_replace('\\', '/', $class);
if (file_exists($file = ('/path/to/modules/dir/ . $path . '.php'))) {
require_once($file);
}
}
function __autoload_namespaced_module($class){
$path = str_replace('\\', '/', $class);
if(file_exists($file = ('/path/to/modules/dir/ . $path . '.php'))){
require_once($file);
}
}
spl_autoload_register();
spl_autoload_register('__autoload_namespaced_module');
spl_autoload_register();
spl_autoload_register('__autoload_namespaced_module');
?>