BUGFIX: Fix static application for translatable

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@81693 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2009-07-13 05:25:04 +00:00
parent d04c967558
commit 3a4518c804

View File

@ -171,11 +171,11 @@ abstract class Object {
* @return mixed
*/
public static function get_static($class, $name, $uncached = false) {
if(!isset(self::$_cache_statics_prepared[$class])) {
Object::prepare_statics($class);
}
if(!isset(self::$cached_statics[$class][$name]) || $uncached) {
if(!isset(self::$_cache_statics_prepared[$class])) {
Object::prepare_statics($class);
}
//if($class == 'DataObjectDecoratorTest_MyObject') Debug::message("$class - $name");
$extra = $builtIn = $break = $replacedAt = false;
$ancestry = array_reverse(ClassInfo::ancestry($class));