Centralize some of the database function (linked to the normalized search). re #48, #49

This commit is contained in:
Sébastien Lucas 2014-05-28 16:13:57 +02:00
parent 81fbe584db
commit 9aee96d7e2
8 changed files with 12 additions and 9 deletions

View file

@ -28,7 +28,7 @@ class tag extends Base {
}
public static function getCount() {
$nTags = parent::getDb ()->query('select count(*) from tags')->fetchColumn();
$nTags = parent::executeQuerySingle ('select count(*) from tags');
if ($nTags == 0) return NULL;
$entry = new Entry (localize("tags.title"), self::ALL_TAGS_ID,
str_format (localize("tags.alphabetical", $nTags), $nTags), "text",