summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-05-23 19:48:04 +0200
committerandi <andi@splitbrain.org>2005-05-23 19:48:04 +0200
commit16521111dd62031afbcbdadffe0f8f6929fb6056 (patch)
treec863b141d593d4313f3ef126e62ad8b60b44cf56
parent26b8b699316de93ab2e795a587e655db27aae651 (diff)
downloadrpg-16521111dd62031afbcbdadffe0f8f6929fb6056.tar.gz
rpg-16521111dd62031afbcbdadffe0f8f6929fb6056.tar.bz2
moved loading of languages to init.php - fixes #346
darcs-hash:20050523174804-9977f-a49e154bb89357d39eb8ddb3273650759cd74114.gz
-rw-r--r--ajax.php2
-rw-r--r--doku.php2
-rw-r--r--inc/init.php4
3 files changed, 4 insertions, 4 deletions
diff --git a/ajax.php b/ajax.php
index 26bccc4d0..928a6d286 100644
--- a/ajax.php
+++ b/ajax.php
@@ -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');
diff --git a/doku.php b/doku.php
index 43b036d86..1b169c57b 100644
--- a/doku.php
+++ b/doku.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));