Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

FIXED: Crash during dev/build on new database construction

  • Loading branch information...
commit 1120f2974e6754496903b17351ad0492ba8cbfa3 1 parent ba62557
Damian Mooyman tractorcow authored chillu committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 code/model/Translatable.php
6 code/model/Translatable.php
@@ -1144,12 +1144,12 @@ function getTranslation($locale, $stage = null) {
protected function populateSiteConfig() {
- // Work-around for population of defaults during test setup (when tables are not created).
- // When the database is being setup during testing, singleton('SiteConfig') is called.
+ // Work-around for population of defaults during database initialisation
+ // When the database is being setup singleton('SiteConfig') is called.
// Singleton objects should not call populateDefault() but a bug seems to be allowing it
// to happen anyway. Looking up existing SiteConfig objects without a database crashes horribly
// @todo Remove this hack once this bug is fixed
- if(SapphireTest::using_temp_db() && !DB::getConn()->hasTable($this->owner->class))
+ if(!DB::getConn()->hasTable($this->owner->class))
// Find the best base translation for site config
Please sign in to comment.
Something went wrong with that request. Please try again.