Index: trunk/extensions/CodeReview/ui/CodeRevisionListView.php |
— | — | @@ -41,6 +41,13 @@ |
42 | 42 | return $path; |
43 | 43 | } |
44 | 44 | |
| 45 | + /** |
| 46 | + * @return string |
| 47 | + */ |
| 48 | + public function getPathsAsString() { |
| 49 | + return implode( '|', $this->mPath ); |
| 50 | + } |
| 51 | + |
45 | 52 | function execute() { |
46 | 53 | global $wgOut, $wgUser, $wgRequest, $wgLang; |
47 | 54 | if ( !$this->mRepo ) { |
— | — | @@ -184,7 +191,7 @@ |
185 | 192 | $ret = Xml::openElement( 'form', array( 'action' => $wgScript, 'method' => 'get' ) ) . |
186 | 193 | "<fieldset><legend>" . wfMsgHtml( 'code-pathsearch-legend' ) . "</legend>" . |
187 | 194 | '<table width="100%"><tr><td>' . |
188 | | - Xml::inputlabel( wfMsg( "code-pathsearch-path" ), 'path', 'path', 55, implode( '|', $this->mPath ) ) . |
| 195 | + Xml::inputlabel( wfMsg( "code-pathsearch-path" ), 'path', 'path', 55, $this->getPathsAsString() ) . |
189 | 196 | ' ' . Xml::submitButton( wfMsg( 'allpagessubmit' ) ) . |
190 | 197 | '</td>'; |
191 | 198 | |
— | — | @@ -327,7 +334,7 @@ |
328 | 335 | |
329 | 336 | function formatRevValue( $name, $value, $row ) { |
330 | 337 | global $wgLang; |
331 | | - $pathQuery = count( $this->mView->mPath ) ? array( 'path' => $this->mView->mPath ) : array(); |
| 338 | + $pathQuery = count( $this->mView->mPath ) ? array( 'path' => $this->mView->getPathsAsString() ) : array(); |
332 | 339 | |
333 | 340 | switch( $name ) { |
334 | 341 | case 'selectforchange': |