summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-01-13 12:08:56 -0800
committerTim Almdal <tnalmdal@shaw.ca>2010-01-13 12:08:56 -0800
commit260660b2f61e96372686eacce2ce7b66a40be4a2 (patch)
tree1145665cba64e94d8aa1ece0107ecdfc0e745225
parente41ad23a8ea05d28a99d12c01d8f317455b1d361 (diff)
Somemore K24 migration holdovers. need to specify the where statement with operands. '=' is no longer assumed. Fixes ticket #979
-rw-r--r--modules/gallery/controllers/l10n_client.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/gallery/controllers/l10n_client.php b/modules/gallery/controllers/l10n_client.php
index d22b6299..e20bab50 100644
--- a/modules/gallery/controllers/l10n_client.php
+++ b/modules/gallery/controllers/l10n_client.php
@@ -29,9 +29,9 @@ class L10n_Client_Controller extends Controller {
$key = $input->post("l10n-message-key");
$root_message = ORM::factory("incoming_translation")
- ->where(array("key" => $key,
- "locale" => "root"))
- ->find();
+ ->where("key", "=", $key)
+ ->where("locale", "=", "root")
+ ->find();
if (!$root_message->loaded()) {
throw new Exception("@todo bad request data / illegal state");
@@ -56,8 +56,8 @@ class L10n_Client_Controller extends Controller {
}
$entry = ORM::factory("outgoing_translation")
- ->where(array("key" => $key,
- "locale" => $locale))
+ ->where("key", "=", $key)
+ ->where("locale", "=", $locale)
->find();
if (!$entry->loaded()) {
@@ -70,8 +70,8 @@ class L10n_Client_Controller extends Controller {
$entry->translation = serialize($translation);
$entry_from_incoming = ORM::factory("incoming_translation")
- ->where(array("key" => $key,
- "locale" => $locale))
+ ->where("key", "=", $key)
+ ->where("locale", "=", $locale)
->find();
if (!$entry_from_incoming->loaded()) {