summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-03-18 16:33:16 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-03-18 16:33:16 +0000
commite07c2dfcd5579f7f8400df3a0a2355475444f946 (patch)
tree42bb6352b99712d5e61b265b285018aa6bef4b9e
parent591403d79453204b537f51b4d213dfef0c9cc270 (diff)
Fix for ticket #154: Remove the raw count and use the ORM wrapper.
-rw-r--r--core/controllers/admin_languages.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/controllers/admin_languages.php b/core/controllers/admin_languages.php
index 0953d285..8e93abda 100644
--- a/core/controllers/admin_languages.php
+++ b/core/controllers/admin_languages.php
@@ -132,9 +132,7 @@ class Admin_Languages_Controller extends Admin_Controller {
}
private function _outgoing_translations_count() {
- return Database::instance()
- ->query("SELECT COUNT(*) AS `C` FROM outgoing_translations")
- ->current()->C;
+ return ORM("outgoing_translation")->count_all();
}
private function _share_translations_form() {