r40926 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40925‎ | r40926 | r40927 >
Date:19:14, 16 September 2008
Author:brion
Status:old
Tags:
Comment:
quickie tweaks to Special:RepoAdmin
* make inputs longer!
* link to code view from success
Modified paths:
  • /trunk/extensions/CodeReview/CodeReview.i18n.php (modified) (history)
  • /trunk/extensions/CodeReview/SpecialRepoAdmin.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/CodeReview.i18n.php
@@ -45,7 +45,7 @@
4646 'repoadmin-edit-bug' => 'Bugzilla path:',
4747 'repoadmin-edit-view' => 'ViewVC path:',
4848 'repoadmin-edit-button' => 'OK',
49 - 'repoadmin-edit-sucess' => 'The repository "$1" has been sucessfully modified.',
 49+ 'repoadmin-edit-sucess' => 'The repository "[[Special:Code/$1|$1]]" has been sucessfully modified.',
5050 );
5151
5252 $messages['fr'] = array(
Index: trunk/extensions/CodeReview/SpecialRepoAdmin.php
@@ -107,11 +107,14 @@
108108 $wgOut->addHtml(
109109 Xml::fieldset( wfMsg( 'repoadmin-edit-legend', $this->mRepoName ) ) .
110110 Xml::openElement( 'form', array( 'method' => 'post', 'action' => $this->mPage->getTitle( $this->mRepoName )->getLocalURL() ) ) .
111 - '<table>'.
112 - '<tr><td>' . Xml::label( wfMsg( 'repoadmin-edit-path' ), 'wpRepoPath' ) . '</td><td>' . Xml::input( 'wpRepoPath', false, $repoPath ) . '</td></tr>' .
113 - '<tr><td>' . Xml::label( wfMsg( 'repoadmin-edit-bug' ), 'wpBugPath' ) . '</td><td>' . Xml::input( 'wpBugPath', false, $bugPath ) . '</td></tr>' .
114 - '<tr><td>' . Xml::label( wfMsg( 'repoadmin-edit-view' ), 'wpViewPath' ) . '</td><td>' . Xml::input( 'wpViewPath', false, $viewPath ) . '</td></tr>' .
115 - '</table>' .
 111+ Xml::buildForm(
 112+ array(
 113+ 'repoadmin-edit-path' =>
 114+ Xml::input( 'wpRepoPath', 60, $repoPath ),
 115+ 'repoadmin-edit-bug' =>
 116+ Xml::input( 'wpBugPath', 60, $bugPath ),
 117+ 'repoadmin-edit-view' =>
 118+ Xml::input( 'wpViewPath', 60, $viewPath ) ) ) .
116119 Xml::hidden( 'wpEditToken', $wgUser->editToken( $this->mRepoName ) ) .
117120 Xml::submitButton( wfMsg( 'repoadmin-edit-button' ) ) .
118121 '</form></fieldset>'

Status & tagging log