Fixed two bugs: PluginManager: forgot to import cache; PageManager: now queries pages with buffered query (temporary fix)
authorDan
Sat, 16 May 2009 02:00:20 +0000
changeset 999 61d492c43e5f
parent 998 be7f9be23973
child 1000 dbefcae6b5cd
Fixed two bugs: PluginManager: forgot to import cache; PageManager: now queries pages with buffered query (temporary fix)
plugins/admin/PageManager.php
plugins/admin/PluginManager.php
--- a/plugins/admin/PageManager.php	Fri May 15 20:23:58 2009 -0400
+++ b/plugins/admin/PageManager.php	Sat May 16 02:00:20 2009 +0000
@@ -541,7 +541,7 @@
     
     $pg_start = ( isset($_GET['offset']) ) ? intval($_GET['offset']) : 0;
     
-    $q = $db->sql_unbuffered_query('SELECT urlname, name, namespace, ' . $num_pages . ' AS num_pages, ' . $pg_start . ' AS offset FROM ' . table_prefix . 'pages ORDER BY name ASC;');
+    $q = $db->sql_query('SELECT urlname, name, namespace, ' . $num_pages . ' AS num_pages, ' . $pg_start . ' AS offset FROM ' . table_prefix . 'pages ORDER BY name ASC;');
     if ( !$q )
       $db->_die('PageManager doing main select query for page list');
     
--- a/plugins/admin/PluginManager.php	Fri May 15 20:23:58 2009 -0400
+++ b/plugins/admin/PluginManager.php	Sat May 16 02:00:20 2009 +0000
@@ -108,7 +108,7 @@
 function page_Admin_PluginManager()
 {
   global $db, $session, $paths, $template, $plugins; // Common objects
-  global $lang;
+  global $lang, $cache;
   if ( $session->auth_level < USER_LEVEL_ADMIN || $session->user_level < USER_LEVEL_ADMIN )
   {
     $login_link = makeUrlNS('Special', 'Login/' . $paths->nslist['Special'] . 'Administration', 'level=' . USER_LEVEL_ADMIN, true);