// It's done by the MW UI, so it's a reasonably legitimate thing to do.
global $wgContLang;
$s = $wgContLang->normalize( $s );
+
return $s;
}
function pickEntryPoint() {
$count = count( $this->entryPoints );
- return $this->entryPoints[ mt_rand( 0, $count - 1 ) ];
+
+ return $this->entryPoints[mt_rand( 0, $count - 1 )];
}
}
/**
* @param Title $title
+ * @return array
*/
function templateHook( $title ) {
$titleText = $title->getPrefixedDBkey();
'text' => $text,
'finalTitle' => $finalTitle );
}
+
return $this->templates[$titleText];
}
// "Output type: {$this->outputType}\n" .
"Entry point: {$this->entryPoint}\n" .
"User: " . ( $this->fancySig ? 'fancy' : 'no-fancy' ) .
- ' ' . var_export( $this->nickname, true ) . "\n" .
+ ' ' . var_export( $this->nickname, true ) . "\n" .
"Main text: " . var_export( $this->mainText, true ) . "\n";
foreach ( $this->templates as $titleText => $template ) {
$finalTitle = $template['finalTitle'];