Index: trunk/extensions/LinkSearch/LinkSearch_body.php |
— | — | @@ -50,8 +50,7 @@ |
51 | 51 | Xml::hidden( 'title', $self->getPrefixedDbKey() ) . |
52 | 52 | '<fieldset>' . |
53 | 53 | Xml::element( 'legend', array(), wfMsg( 'linksearch' ) ) . |
54 | | - Xml::label( wfMsg( 'linksearch-pat' ), 'target' ) . ' ' . |
55 | | - Xml::input( 'target', 50 , $target ) . ' '; |
| 54 | + Xml::inputLabel( wfMsg( 'linksearch-pat' ), 'target', 'target', 50, $target ) . ' '; |
56 | 55 | if ( !$wgMiserMode ) { |
57 | 56 | $s .= Xml::label( wfMsg( 'linksearch-ns' ), 'namespace' ) . ' ' . |
58 | 57 | XML::namespaceSelector( $namespace, '' ); |
— | — | @@ -76,8 +75,8 @@ |
77 | 76 | $this->mProt = $prot; |
78 | 77 | } |
79 | 78 | |
80 | | - function getName() { |
81 | | - return 'Linksearch'; |
| 79 | + function getName() { |
| 80 | + return 'Linksearch'; |
82 | 81 | } |
83 | 82 | |
84 | 83 | /** |
— | — | @@ -156,7 +155,8 @@ |
157 | 156 | $wgOut->addWikiText( wfMsg( 'linksearch-error' ) ); |
158 | 157 | } else { |
159 | 158 | // For debugging |
160 | | - $wgOut->addHtml( "\n<!-- " . htmlspecialchars( $this->mMungedQuery ) . " -->\n" ); |
| 159 | + // Generates invalid xhtml with patterns that contain -- |
| 160 | + //$wgOut->addHtml( "\n<!-- " . htmlspecialchars( $this->mMungedQuery ) . " -->\n" ); |
161 | 161 | parent::doQuery( $offset, $limit, $shownavigation ); |
162 | 162 | } |
163 | 163 | } |
Index: trunk/extensions/LinkSearch/LinkSearch.php |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | 'description' => 'Find pages with external links matching specific patterns', |
14 | 14 | 'descriptionmsg' => 'linksearch-desc', |
15 | 15 | 'url' => 'http://www.mediawiki.org/wiki/Extension:LinkSearch', |
16 | | - 'version' => '1.2', |
| 16 | + 'version' => '1.3', |
17 | 17 | ); |
18 | 18 | |
19 | 19 | $wgExtensionMessagesFiles['LinkSearch'] = dirname(__FILE__) . '/LinkSearch.i18n.php'; |