# HG changeset patch
# User Dan
# Date 1242221985 14400
# Node ID a267c5be79633ed2852bdbde1fb44501dff32a91
# Parent 2db0975aa31a798254b8ec17a669bd5af4117d8b
SpecialPageFuncs: Removed tag cloud sidebar in the name of cutting out an SQL query. It will go into a plugin.
diff -r 2db0975aa31a -r a267c5be7963 plugins/SpecialPageFuncs.php
--- a/plugins/SpecialPageFuncs.php Mon May 11 19:53:25 2009 -0400
+++ b/plugins/SpecialPageFuncs.php Wed May 13 09:39:45 2009 -0400
@@ -618,33 +618,6 @@
$template->footer();
}
-// tag cloud sidebar block
-function sidebar_add_tag_cloud()
-{
- global $db, $session, $paths, $template, $plugins; // Common objects
- global $lang;
- $cloud = new TagCloud();
-
- $q = $db->sql_query('SELECT tag_name FROM '.table_prefix.'tags;');
- if ( !$q )
- $db->_die();
- if ( $db->numrows() < 1 )
- {
- $sb_html = $lang->get('pagetools_tagcloud_msg_no_tags');
- }
- else
- {
- while ( $row = $db->fetchrow() )
- {
- $cloud->add_word($row['tag_name']);
- }
- $sb_html = $cloud->make_html('small', 'justify') . '
' . $lang->get('pagetools_tagcloud_sidebar_btn_larger') . '';
- }
- $template->sidebar_widget('pagetools_tagcloud_sidebar_title', "