(bug 23240) Add ID to namespace selector form on Special:Watchlist
authorRoan Kattouw <catrope@users.mediawiki.org>
Mon, 19 Apr 2010 14:08:38 +0000 (14:08 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Mon, 19 Apr 2010 14:08:38 +0000 (14:08 +0000)
includes/specials/SpecialWatchlist.php

index 72bc824..b109b72 100644 (file)
@@ -291,7 +291,7 @@ function wfSpecialWatchlist( $par ) {
        $form .= $wlInfo;
        $form .= $cutofflinks;
        $form .= $wgLang->pipeList( $links );
-       $form .= Xml::openElement( 'form', array( 'method' => 'post', 'action' => $thisTitle->getLocalUrl() ) );
+       $form .= Xml::openElement( 'form', array( 'method' => 'post', 'action' => $thisTitle->getLocalUrl(), 'id' => 'mw-watchlist-form-namespaceselector' ) );
        $form .= '<hr /><p>';
        $form .= Xml::label( wfMsg( 'namespace' ), 'namespace' ) . '&nbsp;';
        $form .= Xml::namespaceSelector( $nameSpace, '' ) . '&nbsp;';