Initial Commit
This commit is contained in:
12
web/revslider/application/libraries/Gettext/autoloader.php
Normal file
12
web/revslider/application/libraries/Gettext/autoloader.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
spl_autoload_register(function ($class) {
|
||||
if (strpos($class, 'Gettext\\') !== 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
$file = __DIR__.str_replace('\\', DIRECTORY_SEPARATOR, substr($class, strlen('Gettext'))).'.php';
|
||||
|
||||
if (is_file($file)) {
|
||||
require_once $file;
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user