*
* @param $text String
* @param $linestart Boolean: is this the start of a line?
+ * @param $interface Boolean: is this text in the user interface language?
*/
- public function addWikiText( $text, $linestart = true, $interface = false ) {
+ public function addWikiText( $text, $linestart = true, $interface = true ) {
$title = $this->getTitle(); // Work arround E_STRICT
$this->addWikiTextTitle( $text, $title, $linestart, /*tidy*/false, $interface );
}
$this->enableClientCache( false );
$this->mRedirect = '';
$this->mBodytext = '';
- $this->addWikiText( $this->formatPermissionsErrorMessage( $errors, $action ),
- /*linestart*/true, /*interface*/true );
+ $this->addWikiText( $this->formatPermissionsErrorMessage( $errors, $action ) );
}
/**
} else {
$this->setPageTitle( wfMsg( 'badaccess' ) );
}
- $this->addWikiText( $this->formatPermissionsErrorMessage( $reasons, $action ),
- /*linestart*/true, /*interface*/true );
+ $this->addWikiText( $this->formatPermissionsErrorMessage( $reasons, $action ) );
} else {
// Wiki is read only
throw new ReadOnlyError;
/**
* Adds inline CSS styles
* @param $style_css Mixed: inline CSS
- * @param $flip False or String: Set to 'flip' to flip the CSS if needed
+ * @param $flip String: Set to 'flip' to flip the CSS if needed
*/
- public function addInlineStyle( $style_css, $flip = false ) {
+ public function addInlineStyle( $style_css, $flip = 'noflip' ) {
if( $flip === 'flip' && $this->getLang()->isRTL() ) {
# If wanted, and the interface is right-to-left, flip the CSS
$style_css = CSSJanus::transform( $style_css, true, false );
return $ret;
}
+ /**
+ * @return Array
+ */
public function buildCssLinksArray() {
$links = array();
}
$s = str_replace( '$' . ( $n + 1 ), wfMsgExt( $name, $options, $args ), $s );
}
- $this->addWikiText( $s, /*linestart*/true, /*interface*/true );
+ $this->addWikiText( $s );
}
/**
*
* <noinclude>, <includeonly> etc. are parsed as for template transclusion,
* comments, templates, arguments, tags hooks and parser functions are untouched.
+ *
+ * @param $text String
+ * @param $title Title
+ * @param $options ParserOptions
+ * @return String
*/
public function getPreloadText( $text, Title $title, ParserOptions $options ) {
# Parser (re)initialisation
$text .= $this->getWgHooks();
}
- $out->addWikiText( $text, /*linestart*/true, /*interface*/true );
+ $out->addWikiText( $text );
$out->addHTML( $this->IPInfo() );
if ( $this->getRequest()->getVal( 'easteregg' ) ) {
/**
* Return a string of the MediaWiki version with SVN revision if available.
*
+ * @param $flags String
* @return mixed
*/
public static function getVersion( $flags = '' ) {