[dokuwiki] [PATCH] language file loading problem

  • From: Matthias Grimm <matthiasgrimm@xxxxxxxxxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 9 Nov 2005 18:34:10 +0100

Hi,
today I tested Dokuwiki (devel) on another system. On this system
Dokuwiki doesn't accept any laguage than english. The plugins
were localized but the mainstream code not.

After some investigation I found following line in inc/init.php
  if ( defined($conf['lang']) ) {
 
The problem here is that defined() only works on constants but
$conf[] is a variable. Replacing the line with the following
solved the problem:
  if ( isset($conf['lang']) ) {

The attached patch does exactly this.

  Best Regards
    Matthias



 

Other related posts: