Commit f72accde by Scott

Fix tag cloud plugin on PHP 5.2

parent c3a997df
...@@ -116,9 +116,7 @@ class qa_tag_cloud ...@@ -116,9 +116,7 @@ class qa_tag_cloud
$populartags = qa_db_single_select(qa_db_popular_tags_selectspec(0, (int) qa_opt('tag_cloud_count_tags'))); $populartags = qa_db_single_select(qa_db_popular_tags_selectspec(0, (int) qa_opt('tag_cloud_count_tags')));
$populartagslog = array_map(function($e) { $populartagslog = array_map(array($this, 'log_callback'), $populartags);
return log($e) + 1;
}, $populartags);
$maxcount = reset($populartagslog); $maxcount = reset($populartagslog);
...@@ -151,4 +149,9 @@ class qa_tag_cloud ...@@ -151,4 +149,9 @@ class qa_tag_cloud
$themeobject->output('</div>'); $themeobject->output('</div>');
} }
private function log_callback($e)
{
return log($e) + 1;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment