equal
deleted
inserted
replaced
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( |