From e07c2dfcd5579f7f8400df3a0a2355475444f946 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Wed, 18 Mar 2009 16:33:16 +0000 Subject: Fix for ticket #154: Remove the raw count and use the ORM wrapper. --- core/controllers/admin_languages.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'core') 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() { -- cgit v1.2.3