Merge branch 'refs/heads/develop'

This commit is contained in:
snipe
2013-11-28 23:33:33 -05:00
+7 -1
View File
@@ -5,7 +5,13 @@ class Setting extends Elegant {
public static function getSettings()
{
return Setting::find(1);
static $static_cache = NULL;
if (!$static_cache) {
$static_cache = Setting::find(1);
}
return $static_cache;
}
}