Commit ebf336a60071c0f64f27b8c849238681e4e3c8fb
1 parent
5671bc1b
Load up legacy and utility functions as early as possible
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3160 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
3 deletions
config/dmsDefaults.php
| @@ -273,15 +273,15 @@ KTInit::setupLogging(); | @@ -273,15 +273,15 @@ KTInit::setupLogging(); | ||
| 273 | // Send all PHP errors to a file (and maybe a window) | 273 | // Send all PHP errors to a file (and maybe a window) |
| 274 | set_error_handler(array('KTInit', 'handlePHPError')); | 274 | set_error_handler(array('KTInit', 'handlePHPError')); |
| 275 | 275 | ||
| 276 | -KTInit::setupDB(); | ||
| 277 | -KTInit::setupRandomSeed(); | ||
| 278 | - | ||
| 279 | // Give everyone access to legacy PHP functions | 276 | // Give everyone access to legacy PHP functions |
| 280 | require_once(KT_LIB_DIR . '/util/legacy.inc'); | 277 | require_once(KT_LIB_DIR . '/util/legacy.inc'); |
| 281 | 278 | ||
| 282 | // Give everyone access to KTUtil utility functions | 279 | // Give everyone access to KTUtil utility functions |
| 283 | require_once(KT_LIB_DIR . '/util/ktutil.inc'); | 280 | require_once(KT_LIB_DIR . '/util/ktutil.inc'); |
| 284 | 281 | ||
| 282 | +KTInit::setupDB(); | ||
| 283 | +KTInit::setupRandomSeed(); | ||
| 284 | + | ||
| 285 | require_once("$default->fileSystemRoot/lib/authentication/$default->authenticationClass.inc"); | 285 | require_once("$default->fileSystemRoot/lib/authentication/$default->authenticationClass.inc"); |
| 286 | 286 | ||
| 287 | // instantiate system settings class | 287 | // instantiate system settings class |