Fixed two bugs: PluginManager: forgot to import cache; PageManager: now queries pages with buffered query (temporary fix)
--- 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);