summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/l10n_scanner.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery/helpers/l10n_scanner.php')
-rw-r--r--modules/gallery/helpers/l10n_scanner.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/gallery/helpers/l10n_scanner.php b/modules/gallery/helpers/l10n_scanner.php
index a8059b3a..a7ce2c59 100644
--- a/modules/gallery/helpers/l10n_scanner.php
+++ b/modules/gallery/helpers/l10n_scanner.php
@@ -31,19 +31,19 @@ class l10n_scanner_Core {
foreach (Database::instance()
->select("key")
->from("incoming_translations")
- ->where("locale", "root")
+ ->where("locale", "=", "root")
->get() as $row) {
$cache[$row->key] = true;
}
}
- $key = I18n::get_message_key($message);
+ $key = Gallery_I18n::get_message_key($message);
if (array_key_exists($key, $cache)) {
return $cache[$key];
}
$entry = ORM::factory("incoming_translation", array("key" => $key));
- if (!$entry->loaded) {
+ if (!$entry->loaded()) {
$entry->key = $key;
$entry->message = serialize($message);
$entry->locale = "root";