delete autoloader.php from libs/smarty folder.

(cherry picked from commit 1bfd33c)
This commit is contained in:
DariusIII
2015-06-29 12:28:08 +02:00
committed by Darko
parent aac5a0e687
commit 4d4d584e97
-30
View File
@@ -1,30 +0,0 @@
<?php
spl_autoload_register(
function($className)
{
if ($className == 'Smarty') {
$className = 'Smarty.class';
}
$paths = array(
SMARTY_DIR,
NN_WWW . 'pages' . DIRECTORY_SEPARATOR,
SMARTY_DIR . 'plugins' . DIRECTORY_SEPARATOR,
SMARTY_DIR . 'sysplugins' . DIRECTORY_SEPARATOR
);
foreach ($paths as $path)
{
$spec = str_replace('\\', DIRECTORY_SEPARATOR, $path . strtolower($className) . '.php');
if (file_exists($spec)) {
require_once $spec;
break;
} else if (NN_LOGAUTOLOADER) {
var_dump($spec);
}
}
}
);
?>