return;
}
}
- $wgOut->addWikiText( wfMsg( 'noexactmatch', wfEscapeWikiText( $term ) ) );
+ if( $t->quickUserCan( 'create' ) && $t->quickUserCan( 'edit' ) ) {
+ $wgOut->addWikiText( wfMsg( 'noexactmatch', wfEscapeWikiText( $term ) ) );
+ } else {
+ $wgOut->addWikiText( wfMsg( 'noexactmatch-nocreate', wfEscapeWikiText( $term ) ) );
+ }
return $this->showResults( $term );
}
'searchsubtitle' => "You searched for '''[[:$1]]'''",
'searchsubtitleinvalid' => "You searched for '''$1'''",
'noexactmatch' => "'''There is no page titled \"\$1\".''' You can [[:\$1|create this page]].",
+'noexactmatch-nocreate' => "'''There is no page titled \"\$1\".'''",
'titlematches' => 'Page title matches',
'notitlematches' => 'No page title matches',
'textmatches' => 'Page text matches',
<span style="display: block; margin: 1.5em 2em">
<strong>[[:$1|Создать страницу]]</strong></span>',
+'noexactmatch-nocreate' => 'Страницы с названием «$1» не существует.',
'titlematches' => 'Совпадения в названиях статей',
'notitlematches' => 'Нет совпадений в названиях статей',
'textmatches' => 'Совпадения в текстах статей',
'searchsubtitle',
'searchsubtitleinvalid',
'noexactmatch',
+ 'noexactmatch-nocreate',
'titlematches',
'notitlematches',
'textmatches',