$this->addOption( 'delete', 'Actually perform the deletion' );
$this->addOption( 'page_id', 'List of page ids to work on', false );
}
$this->addOption( 'delete', 'Actually perform the deletion' );
$this->addOption( 'page_id', 'List of page ids to work on', false );
}
# If a list of page_ids was provided, limit results to that set of page_ids
if ( count( $args ) > 0 ) {
# If a list of page_ids was provided, limit results to that set of page_ids
if ( count( $args ) > 0 ) {
# Get "active" revisions from the page table
$this->output( "Searching for active revisions..." );
$res = $dbw->select( 'page', 'page_latest', $pageConds, __METHOD__ );
# Get "active" revisions from the page table
$this->output( "Searching for active revisions..." );
$res = $dbw->select( 'page', 'page_latest', $pageConds, __METHOD__ );
$revConds[] = 'rev_id NOT IN (' . $dbw->makeList( $latestRevs ) . ')';
}
$res = $dbw->select( 'revision', 'rev_id', $revConds, __METHOD__ );
$revConds[] = 'rev_id NOT IN (' . $dbw->makeList( $latestRevs ) . ')';
}
$res = $dbw->select( 'revision', 'rev_id', $revConds, __METHOD__ );