$this->setCategory( $cat );
}
-
if ( !$this->category && $categoryStr ) {
$this->setHeaders();
$this->getOutput()->addWikiMsg( 'randomincategory-invalidcategory',
$msg = $this->msg( 'randomincategory-selectcategory' );
$form = Html::rawElement( 'form', array( 'action' => $wgScript ),
- Html::hidden( 'title', $this->getTitle()->getPrefixedText() ) .
+ Html::hidden( 'title', $this->getPageTitle()->getPrefixedText() ) .
$msg->rawParams( $input, $submit )->parse()
);
$this->getOutput()->addHtml( $form );
*/
public function getRandomTitle() {
// Convert to float, since we do math with the random number.
- $rand = (float) wfRandom();
+ $rand = (float)wfRandom();
$title = null;
// Given that timestamps are rather unevenly distributed, we also