summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2026-04-05 11:04:04 +0100
committerlsces <lester@lsces.co.uk>2026-04-05 11:04:04 +0100
commit85ab9e004e57ee366130805557420d83e525a029 (patch)
tree3c67b512e361dad9f6ca079087bb26416bbca21c
parent4e45633db67de8570243e44de0531bf2102b9da9 (diff)
downloadlanguages-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-xincludes/classes/BitLanguage.php2
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();
}