parent::__construct( 'EditWatchlist', 'editmywatchlist' );
}
+ public function doesWrites() {
+ return true;
+ }
+
/**
* Main execution point
*
}
if ( $title instanceof Title ) {
- $output .= "<li>"
- . Linker::link( $title )
- . ' (' . Linker::link( $title->getTalkPage(), $talk )
- . ")</li>\n";
+ $output .= '<li>' .
+ Linker::link( $title ) . ' ' .
+ $this->msg( 'parentheses' )->rawParams(
+ Linker::link( $title->getTalkPage(), $talk )
+ )->escaped() .
+ "</li>\n";
}
}
*/
private function cleanupWatchlist() {
if ( !count( $this->badItems ) ) {
- return; //nothing to do
+ return; // nothing to do
}
$dbw = wfGetDB( DB_MASTER );
$link = '<span class="watchlistredir">' . $link . '</span>';
}
- return $link . " (" . $this->getLanguage()->pipeList( $tools ) . ")";
+ return $link . ' ' .
+ $this->msg( 'parentheses' )->rawParams( $this->getLanguage()->pipeList( $tools ) )->escaped();
}
/**