* added line-wraps to make the XHTML output easier legible
authorDanny B <danny_b@users.mediawiki.org>
Wed, 15 Oct 2008 22:50:14 +0000 (22:50 +0000)
committerDanny B <danny_b@users.mediawiki.org>
Wed, 15 Oct 2008 22:50:14 +0000 (22:50 +0000)
includes/WatchlistEditor.php

index f3e41da..9877844 100644 (file)
@@ -342,16 +342,16 @@ class WatchlistEditor {
                        $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>';
@@ -391,9 +391,9 @@ class WatchlistEditor {
                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";
                }
 
        /**