diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-11-11 18:37:36 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-11-11 18:37:36 +0100 |
commit | 45903fe3960b65d63f70188640630c895dbbe222 (patch) | |
tree | ba0b0f9ba0615cd46214eeab236031c062664d6d /index.php | |
parent | d7f3313ff4514e38c9f53439cd1a1287e56e45f7 (diff) | |
download | wcms-45903fe3960b65d63f70188640630c895dbbe222.tar.gz wcms-45903fe3960b65d63f70188640630c895dbbe222.zip |
cleaning
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -5,15 +5,10 @@ session_start(); -require(__DIR__ . '/fn/w.fn.php'); - -function class_autoloader($class) -{ - require(__DIR__ . DIRECTORY_SEPARATOR . 'class' . DIRECTORY_SEPARATOR . strtolower($class) . '.php'); -} +require('app/fn/fn.php'); -require(__DIR__ . '/../vendor/autoload.php'); +require('./vendor/autoload.php'); spl_autoload_register('class_autoloader'); |