plugins/SpecialSearch.php
changeset 1018 3e3118285700
parent 960 e74741b8360b
child 1081 745200a9cc2a
equal deleted inserted replaced
1017:d0d3da40c391 1018:3e3118285700
   183     }
   183     }
   184     unset($result);
   184     unset($result);
   185     
   185     
   186     $per_page = 10;
   186     $per_page = 10;
   187     $start = ( isset($_GET['start']) ? intval($_GET['start']) : 0 );
   187     $start = ( isset($_GET['start']) ? intval($_GET['start']) : 0 );
       
   188     // for plugin compatibility:
       
   189     $offset =& $start;
   188     $start_string = $start + 1;
   190     $start_string = $start + 1;
   189     $per_string = $start_string + $per_page - 1;
   191     $per_string = $start_string + $per_page - 1;
   190     $num_results = count($results);
   192     $num_results = count($results);
   191     if ( $per_string > $num_results )
   193     if ( $per_string > $num_results )
   192       $per_string = $num_results;
   194       $per_string = $num_results;