Index: trunk/phpwiki/newcodebase/wiki.phtml |
— | — | @@ -15,7 +15,7 @@ |
16 | 16 | |
17 | 17 | # Query string fields |
18 | 18 | # |
19 | | -global $action, $title, $search, $target, $printable; |
| 19 | +global $action, $title, $search, $go, $target, $printable; |
20 | 20 | global $returnto, $diff, $oldid; |
21 | 21 | |
22 | 22 | $action = strtolower( trim( $action ) ); |
— | — | @@ -36,7 +36,18 @@ |
37 | 37 | if ( -1 == $wgTitle->getNamespace() ) { |
38 | 38 | wfSpecialPage(); |
39 | 39 | } else if ( "" != $search ) { |
40 | | - wfSearch( $search ); |
| 40 | + if($go) { |
| 41 | + |
| 42 | + $wgArticle=new Article(); |
| 43 | + $wgTitle=Title::newFromText($search); |
| 44 | + $wgArticle->view(); |
| 45 | + |
| 46 | + } else { |
| 47 | + |
| 48 | + wfSearch( $search ); |
| 49 | + |
| 50 | + } |
| 51 | + |
41 | 52 | } else { |
42 | 53 | $wgArticle = new Article(); |
43 | 54 | |
Index: trunk/phpwiki/newcodebase/Skin.php |
— | — | @@ -395,7 +395,7 @@ |
396 | 396 | . "<input type=text name=\"search\" size=16 value=\"" |
397 | 397 | . htmlspecialchars(substr($search,0,256)) . "\">\n" |
398 | 398 | . "<input type=submit value=\"" . wfMsg( "search" ) |
399 | | - . "\"></form>"; |
| 399 | + . "\"> <input type=submit name=\"go\"value=\"" . wfMsg ("go") . "\"></form>"; |
400 | 400 | |
401 | 401 | return $s; |
402 | 402 | } |
Index: trunk/phpwiki/newcodebase/Language.php |
— | — | @@ -304,6 +304,7 @@ |
305 | 305 | "whatlinkshere" => "Pages that link here", |
306 | 306 | "help" => "Help", |
307 | 307 | "search" => "Search", |
| 308 | +"go" => "Go", |
308 | 309 | "history" => "Older versions", |
309 | 310 | "printableversion" => "Printable version", |
310 | 311 | "editthispage" => "Edit this page", |