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:
parent
252deef75a
commit
5dbea6c41a
17
INSTALL
17
INSTALL
@ -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');
|
||||
|
||||
?>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user