plugins/admin/PageManager.php
changeset 999 61d492c43e5f
parent 953 323c4cd1aa37
child 1081 745200a9cc2a
equal deleted inserted replaced
998:be7f9be23973 999:61d492c43e5f
   539     list($num_pages) = $db->fetchrow_num();
   539     list($num_pages) = $db->fetchrow_num();
   540     $db->free_result();
   540     $db->free_result();
   541     
   541     
   542     $pg_start = ( isset($_GET['offset']) ) ? intval($_GET['offset']) : 0;
   542     $pg_start = ( isset($_GET['offset']) ) ? intval($_GET['offset']) : 0;
   543     
   543     
   544     $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;');
   544     $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;');
   545     if ( !$q )
   545     if ( !$q )
   546       $db->_die('PageManager doing main select query for page list');
   546       $db->_die('PageManager doing main select query for page list');
   547     
   547     
   548     // Paginate results
   548     // Paginate results
   549     $html = paginate(
   549     $html = paginate(