diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2012-03-13 17:57:07 -0400 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2012-03-13 17:57:07 -0400 |
commit | fe5d18095e298f4323571f10c8c8e2c18b8dcf33 (patch) | |
tree | 89806b5f4160eee5898e0c2408ef9159782c1ec7 /admin | |
parent | b58a5c84293e9a74ab401094f8fff16fdb9cce5f (diff) | |
download | ampache-fe5d18095e298f4323571f10c8c8e2c18b8dcf33.tar.gz ampache-fe5d18095e298f4323571f10c8c8e2c18b8dcf33.tar.bz2 ampache-fe5d18095e298f4323571f10c8c8e2c18b8dcf33.zip |
Refactor similar init code into new init-tiny.php
Several places were doing operations that were practically the same
(loading core libraries and setting some variables), with varying
levels of success in remembering to do the right things in the right
order. Making a separate minimal init.php that doesn't worry about
some of the sanity checks and session bumpf makes this cleaner and
easier to maintain.
Diffstat (limited to 'admin')
-rw-r--r-- | admin/system.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/admin/system.php b/admin/system.php index e2fc0faa..eefc1d7f 100644 --- a/admin/system.php +++ b/admin/system.php @@ -26,9 +26,7 @@ * @link http://www.ampache.org/ */ -require '../lib/init.php'; -require_once Config::get('prefix') . '/lib/debug.lib.php'; -require_once Config::get('prefix') . '/modules/horde/Browser.php'; +require_once '../lib/init.php'; if (!Access::check('interface',100) OR Config::get('demo_mode')) { access_denied(); |