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