Skip to content

Commit

Permalink
Load libraries after init
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianheine committed Mar 15, 2010
1 parent a958c48 commit c7cb395
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 6 additions & 4 deletions inc/init.php
Expand Up @@ -40,9 +40,6 @@ function delta_time($start=0) {
error_reporting(DOKU_E_LEVEL);
}

// load libraries
require_once(DOKU_INC.'inc/load.php');

// init memory caches
global $cache_revinfo;
$cache_revinfo = array();
Expand Down Expand Up @@ -249,8 +246,13 @@ function_exists('ob_gzhandler')) {
scriptify(DOKU_CONF.'users.auth');
scriptify(DOKU_CONF.'acl.auth');

// load libraries
require_once(DOKU_INC.'inc/load.php');

// setup authentication system
auth_setup();
if (!defined('NOSESSION')) {
auth_setup();
}

/**
* Checks paths from config file
Expand Down
2 changes: 0 additions & 2 deletions inc/load.php
Expand Up @@ -24,9 +24,7 @@
require_once(DOKU_INC.'inc/httputils.php');
require_once(DOKU_INC.'inc/indexer.php');
require_once(DOKU_INC.'inc/infoutils.php');
require_once(DOKU_INC.'inc/init.php');
require_once(DOKU_INC.'inc/io.php');
require_once(DOKU_INC.'inc/load.php');
require_once(DOKU_INC.'inc/mail.php');
require_once(DOKU_INC.'inc/media.php');
require_once(DOKU_INC.'inc/pageutils.php');
Expand Down

0 comments on commit c7cb395

Please sign in to comment.