diff options
-rw-r--r-- | ajax.php | 2 | ||||
-rw-r--r-- | doku.php | 2 | ||||
-rw-r--r-- | inc/init.php | 4 |
3 files changed, 4 insertions, 4 deletions
@@ -10,8 +10,6 @@ if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__)).'/'); require_once(DOKU_INC.'inc/init.php'); require_once(DOKU_INC.'inc/common.php'); require_once(DOKU_INC.'inc/pageutils.php'); -require_once(DOKU_INC.'lang/en/lang.php'); -require_once(DOKU_INC.'lang/'.$conf['lang'].'/lang.php'); require_once(DOKU_INC.'inc/auth.php'); @@ -13,8 +13,6 @@ require_once(DOKU_INC.'inc/common.php'); require_once(DOKU_INC.'inc/pageutils.php'); require_once(DOKU_INC.'inc/html.php'); - require_once(DOKU_INC.'lang/en/lang.php'); - require_once(DOKU_INC.'lang/'.$conf['lang'].'/lang.php'); require_once(DOKU_INC.'inc/auth.php'); require_once(DOKU_INC.'inc/actions.php'); diff --git a/inc/init.php b/inc/init.php index af1d1eb9c..363518b65 100644 --- a/inc/init.php +++ b/inc/init.php @@ -21,6 +21,10 @@ global $lang; $lang = array(); + //load the language files + require_once(DOKU_INC.'lang/en/lang.php'); + require_once(DOKU_INC.'lang/'.$conf['lang'].'/lang.php'); + // define baseURL if(!defined('DOKU_BASE')) define('DOKU_BASE',getBaseURL()); if(!defined('DOKU_URL')) define('DOKU_URL',getBaseURL(true)); |