diff options
| author | lsces <lester@lsces.co.uk> | 2026-04-05 11:04:04 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-04-05 11:04:04 +0100 |
| commit | 85ab9e004e57ee366130805557420d83e525a029 (patch) | |
| tree | 3c67b512e361dad9f6ca079087bb26416bbca21c | |
| parent | 4e45633db67de8570243e44de0531bf2102b9da9 (diff) | |
| download | languages-85ab9e004e57ee366130805557420d83e525a029.tar.gz languages-85ab9e004e57ee366130805557420d83e525a029.tar.bz2 languages-85ab9e004e57ee366130805557420d83e525a029.zip | |
Solving a little chicken and egg situation when installing from scratch. Once the database is created autoload is messing things up until the tables are also created. Need a tidier way of doing this but it works for now by check tables exist before using them.
| -rwxr-xr-x | includes/classes/BitLanguage.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/classes/BitLanguage.php b/includes/classes/BitLanguage.php index 92f37b3..810df73 100755 --- a/includes/classes/BitLanguage.php +++ b/includes/classes/BitLanguage.php @@ -37,7 +37,7 @@ class BitLanguage extends BitSingleton { } public function load() { - if( parent::load() ) { + if( parent::load() && $this->mDb->tableExists( 'i18n_languages' ) ) { $this->mLanguageList = $this->listLanguages(); $this->autoSetLanguage(); } |
