BUG Skip SiteConfig->populateDefaults() on first dev/build

This commit is contained in:
Ingo Schommer 2012-09-22 16:44:52 +02:00
parent a44546bcdd
commit 00dda353e3

View File

@ -1147,6 +1147,7 @@ class Translatable extends DataExtension implements PermissionProvider {
// Work-around for population of defaults during database initialisation.
// When the database is being setup singleton('SiteConfig') is called.
if(!DB::getConn()->hasTable($this->owner->class)) return;
if(!DB::getConn()->hasField($this->owner->class, 'Locale')) return;
// Find the best base translation for SiteConfig
Translatable::disable_locale_filter();