From 5aa380594f71ceedcdb4df6ebd3386d5be872539 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 21 Feb 2011 12:24:51 +0000 Subject: [PATCH] GetArray -> get_all --- ext/tag_list/main.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/ext/tag_list/main.php b/ext/tag_list/main.php index 13f8c006..5d6cf017 100644 --- a/ext/tag_list/main.php +++ b/ext/tag_list/main.php @@ -127,7 +127,7 @@ class TagList implements Extension { global $database; $tags_min = $this->get_tags_min(); - $result = $database->execute(" + $tag_data = $database->get_all(" SELECT tag, FLOOR(LOG(2.7, LOG(2.7, count - :tags_min + 1)+1)*1.5*100)/100 AS scaled @@ -135,7 +135,6 @@ class TagList implements Extension { WHERE count >= :tags_min ORDER BY tag ", array("tags_min"=>$tags_min)); - $tag_data = $result->GetArray(); $html = ""; foreach($tag_data as $row) { @@ -153,10 +152,9 @@ class TagList implements Extension { global $database; $tags_min = $this->get_tags_min(); - $result = $database->execute( + $tag_data = $database->get_all( "SELECT tag,count FROM tags WHERE count >= :tags_min ORDER BY tag", array("tags_min"=>$tags_min)); - $tag_data = $result->GetArray(); $html = ""; $lastLetter = ""; @@ -178,10 +176,9 @@ class TagList implements Extension { global $database; $tags_min = $this->get_tags_min(); - $result = $database->execute( + $tag_data = $database->get_all( "SELECT tag,count,FLOOR(LOG(count)) AS scaled FROM tags WHERE count >= :tags_min ORDER BY count DESC, tag ASC", array("tags_min"=>$tags_min)); - $tag_data = $result->GetArray(); $html = "Results grouped by loge(n)"; $lastLog = ""; @@ -204,8 +201,7 @@ class TagList implements Extension { global $database; $tags_min = $this->get_tags_min(); - $result = $database->execute("SELECT tag,count FROM tags ORDER BY count DESC, tag ASC LIMIT 9"); - $tag_data = $result->GetArray(); + $tag_data = $database->get_all("SELECT tag,count FROM tags ORDER BY count DESC, tag ASC LIMIT 9"); $html = ""; $n = 0;