$res = $dbr->select(
'page', /* FROM */
'page_title', /* WHAT */
- $where + array( $chunk),
+ $where + array($chunk),
__METHOD__,
array ('LIMIT' => 2, 'OFFSET' => $this->maxPerPage - 1, 'ORDER BY' => 'page_title') );
$out .= $this->showline ( $inpoint, $outpoint, $namespace, false );
}
$out .= '</table>';
- $nsForm = $this->namespaceForm ( $namespace, '', false );
+ $nsForm = $this->namespaceForm( $namespace, '', false );
# Is there more?
if ( $including ) {
}
}
- $nsForm = $this->namespaceForm ( $namespace, $from );
+ $nsForm = $this->namespaceForm( $namespace, $from );
$out2 = '<table style="background: inherit;" width="100%" cellpadding="0" cellspacing="0" border="0">';
$out2 .= '<tr valign="top"><td>' . $nsForm;
$out2 .= '</td><td align="' . $align . '" style="font-size: smaller; margin-bottom: 1em;">' .
if( $db->numRows( $res ) > 0 ) {
$linkBatch = new LinkBatch();
while( $row = $db->fetchObject( $res ) )
- $linkBatch->addObj( Title::makeTitleSafe( $row->namespace, $row->title ) );
+ $linkBatch->add( $row->namespace, $row->title );
$db->dataSeek( $res, 0 );
$linkBatch->execute();
}
function preprocessResults( $db, $res ) {
$batch = new LinkBatch;
while ( $row = $db->fetchObject( $res ) )
- $batch->addObj( Title::makeTitleSafe( $row->namespace, $row->title ) );
+ $batch->add( $row->namespace, $row->title );
$batch->execute();
// Back to start for display
* @param Database $dbr Database connection
* @param int $res Result pointer
*/
- public function preprocessResults( $dbr, $res ) {
+ public function preprocessResults( $db, $res ) {
$batch = new LinkBatch();
- while( $row = $dbr->fetchObject( $res ) ) {
- $title = Title::makeTitleSafe( $row->namespace, $row->title );
- $batch->addObj( $title );
+ while( $row = $db->fetchObject( $res ) ) {
+ $batch->add( $row->namespace, $row->title );
}
$batch->execute();
- if( $dbr->numRows( $res ) > 0 )
- $dbr->dataSeek( $res, 0 );
+ if( $db->numRows( $res ) > 0 )
+ $db->dataSeek( $res, 0 );
}
/**
class ShortPagesPage extends QueryPage {
function getName() {
- return "Shortpages";
+ return 'Shortpages';
}
/**
if( $this->isCached() ) {
$batch = new LinkBatch();
while( $row = $db->fetchObject( $res ) )
- $batch->addObj( Title::makeTitleSafe( $row->namespace, $row->title ) );
+ $batch->add( $row->namespace, $row->title );
$batch->execute();
if( $db->numRows( $res ) > 0 )
$db->dataSeek( $res, 0 );
*/
class WantedCategoriesPage extends QueryPage {
- function getName() { return 'Wantedcategories'; }
- function isExpensive() { return true; }
- function isSyndicated() { return false; }
+ function getName() {
+ return 'Wantedcategories';
+ }
+
+ function isExpensive() {
+ return true;
+ }
+
+ function isSyndicated() {
+ return false;
+ }
function getSQL() {
$dbr = wfGetDB( DB_SLAVE );
function preprocessResults( $db, $res ) {
$batch = new LinkBatch;
while ( $row = $db->fetchObject( $res ) )
- $batch->addObj( Title::makeTitleSafe( $row->namespace, $row->title ) );
+ $batch->add( $row->namespace, $row->title );
$batch->execute();
// Back to start for display
function preprocessResults( $db, $res ) {
$batch = new LinkBatch;
while ( $row = $db->fetchObject( $res ) )
- $batch->addObj( Title::makeTitleSafe( $row->namespace, $row->title ) );
+ $batch->add( $row->namespace, $row->title );
$batch->execute();
// Back to start for display
private $namespace;
- function WhatLinksHerePage( &$request, $par = null ) {
+ function WhatLinksHerePage( $request, $par = null ) {
global $wgUser;
- $this->request =& $request;
+ $this->request = $request;
$this->skin = $wgUser->getSkin();
$this->par = $par;
}