diff options
author | nashe <contact@nashe.fr> | 2015-08-11 11:59:40 +0200 |
---|---|---|
committer | nashe <contact@nashe.fr> | 2015-08-11 11:59:40 +0200 |
commit | f2788a4ed2eae7f0056ab200b8fc787ed20a32da (patch) | |
tree | c9c5ded4176bb6390f6f5773ebfa2f8b91d67a5a /admin/inc | |
parent | e47418ee75998ae22a506b8fd596dbba58388266 (diff) | |
download | planet-f2788a4ed2eae7f0056ab200b8fc787ed20a32da.tar planet-f2788a4ed2eae7f0056ab200b8fc787ed20a32da.tar.gz planet-f2788a4ed2eae7f0056ab200b8fc787ed20a32da.tar.bz2 planet-f2788a4ed2eae7f0056ab200b8fc787ed20a32da.tar.xz planet-f2788a4ed2eae7f0056ab200b8fc787ed20a32da.zip |
Fix class autoloading
Made some mistakes with my last PR: I tested that everything were
working, but on the wrong branch.
This commit fixes all the autoloading error that were left.
Diffstat (limited to 'admin/inc')
-rw-r--r-- | admin/inc/auth.inc.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/admin/inc/auth.inc.php b/admin/inc/auth.inc.php index db6e571..0acf934 100644 --- a/admin/inc/auth.inc.php +++ b/admin/inc/auth.inc.php @@ -1,7 +1,10 @@ <?php include dirname(__FILE__).'/pwd.inc.php'; -require_once __DIR__.'/../../app/classes/Planet.class.php'; + +if (!class_exists('Planet')) { + require __DIR__.'/../../vendor/autoload.php'; +} if (!Planet::authenticateUser($_COOKIE['auth'], $password)) { setcookie('auth', '', time() - 3600); |