mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-04 06:01:23 -04:00
Fix for ticket #154: Remove the raw count and use the ORM wrapper.
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user