MDL-22052 Reverted - string_exists uses caches again

I added the third parameter in the previous commit without exploring the
consequences. Now I see that string_exists is called too many often and
it must not rebuild caches again and again.
This commit is contained in:
David Mudrak
2010-06-25 13:43:50 +00:00
parent f57c4047b1
commit e330b3a1a9
+1 -1
View File
@@ -5914,7 +5914,7 @@ class core_string_manager implements string_manager {
return false;
}
$lang = current_language();
$string = $this->load_component_strings($component, $lang, true);
$string = $this->load_component_strings($component, $lang);
return isset($string[$identifier]);
}