plugins/admin/PageEditor.php
changeset 1013 8626bb38410f
parent 801 eb8b23f11744
child 1081 745200a9cc2a
equal deleted inserted replaced
1012:d966be8d79a3 1013:8626bb38410f
   149     list($num_pages) = $db->fetchrow_num();
   149     list($num_pages) = $db->fetchrow_num();
   150     $db->free_result();
   150     $db->free_result();
   151     
   151     
   152     $pg_start = ( isset($_GET['offset']) ) ? intval($_GET['offset']) : 0;
   152     $pg_start = ( isset($_GET['offset']) ) ? intval($_GET['offset']) : 0;
   153     
   153     
   154     $q = $db->sql_unbuffered_query('SELECT urlname, name, namespace, ' . $num_pages . ' AS num_pages, ' . $pg_start . ' AS offset, \'edit\' AS mode FROM ' . table_prefix . 'pages ORDER BY name ASC;');
   154     $q = $db->sql_query('SELECT urlname, name, namespace, ' . $num_pages . ' AS num_pages, ' . $pg_start . ' AS offset, \'edit\' AS mode FROM ' . table_prefix . 'pages ORDER BY name ASC;');
   155     if ( !$q )
   155     if ( !$q )
   156       $db->_die('PageManager doing main select query for page list');
   156       $db->_die('PageManager doing main select query for page list');
   157     
   157     
   158     // Paginate results
   158     // Paginate results
   159     $html = paginate(
   159     $html = paginate(