$form = Xml::openElement( 'form', array( 'method' => 'post',
'action' => $self->getLocalUrl( 'action=edit' ) ) );
$form .= Xml::hidden( 'token', $wgUser->editToken( 'watchlistedit' ) );
- $form .= '<fieldset><legend>' . wfMsgHtml( 'watchlistedit-normal-legend' ) . '</legend>';
+ $form .= "<fieldset>\n<legend>" . wfMsgHtml( 'watchlistedit-normal-legend' ) . "</legend>";
$form .= wfMsgExt( 'watchlistedit-normal-explain', 'parse' );
foreach( $this->getWatchlistInfo( $user ) as $namespace => $pages ) {
- $form .= '<h2>' . $this->getNamespaceHeading( $namespace ) . '</h2>';
- $form .= '<ul>';
+ $form .= "<h2>" . $this->getNamespaceHeading( $namespace ) . "</h2>\n";
+ $form .= "<ul>\n";
foreach( $pages as $dbkey => $redirect ) {
$title = Title::makeTitleSafe( $namespace, $dbkey );
$form .= $this->buildRemoveLine( $title, $redirect, $wgUser->getSkin() );
}
- $form .= '</ul>';
+ $form .= "</ul>\n";
}
$form .= '<p>' . Xml::submitButton( wfMsg( 'watchlistedit-normal-submit' ) ) . '</p>';
$form .= '</fieldset></form>';
if( $title->getNamespace() == NS_USER && !$title->isSubpage() ) {
$tools[] = $skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Contributions', $title->getText() ), wfMsgHtml( 'contributions' ) );
}
- return '<li>'
+ return "<li>"
. Xml::check( 'titles[]', false, array( 'value' => $title->getPrefixedText() ) )
- . $link . ' (' . implode( ' | ', $tools ) . ')' . '</li>';
+ . $link . " (" . implode( ' | ', $tools ) . ")" . "</li>\n";
}
/**