r11913 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r11912‎ | r11913 | r11914 >
Date:04:27, 3 December 2005
Author:avar
Status:old
Tags:
Comment:
* Added an interface message that controls the layout of action=edit
Modified paths:
  • /trunk/phase3/includes/EditPage.php (modified) (history)
  • /trunk/phase3/languages/Language.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/EditPage.php
@@ -866,17 +866,8 @@
867867 </textarea>
868868
869869 " );
870 -
871 - $wgOut->addWikiText( $copywarn );
872870
873 - $wgOut->addHTML( "
874 -{$metadata}
875 -{$editsummary}
876 -{$checkboxhtml}
877 -{$safemodehtml}
878 -");
879 -
880 - $wgOut->addHTML( "
 871+ $editbuttons = "
881872 <div class='editButtons'>
882873 <input tabindex='5' id='wpSave' type='submit' value=\"{$save}\" name=\"wpSave\" accesskey=\"".wfMsg('accesskey-save')."\"".
883874 " title=\"".wfMsg('tooltip-save')."\"/>
@@ -884,17 +875,22 @@
885876 " title=\"".wfMsg('tooltip-preview')."\"/>
886877 <input tabindex='7' id='wpDiff' type='submit' value=\"{$diff}\" name=\"wpDiff\" accesskey=\"".wfMsg('accesskey-diff')."\"".
887878 " title=\"".wfMsg('tooltip-diff')."\"/> <span class='editHelp'>{$cancel} | {$edithelp}</span></div>
888 -</div>
889 -" );
 879+</div>";
890880
891 - $wgOut->addWikiText( wfMsgForContent( 'edittools' ) );
892 -
893 - $wgOut->addHTML( "
894 -<div class='templatesUsed'>
895 -{$templates}
896 -</div>
897 -" );
898 -
 881+ $wgOut->addHTML(
 882+ wfMsgForContent( 'editpage-template',
 883+ array(
 884+ 'METADATA' => $metadata,
 885+ 'SUMMARY' => $editsummary,
 886+ 'CHECKBOXES' => $checkboxhtml . $safemodehtml,
 887+ 'BUTTONS' => $editbuttons,
 888+ 'EDITTOOLS' => $wgOut->parse( wfMsgForContent( 'edittools' ) ),
 889+ 'COPYRIGHTWARNING' => $wgOut->parse( $copywarn ),
 890+ 'TEMPLATES' => "<div class='templatesUsed'>$templates</div>"
 891+ )
 892+ )
 893+ );
 894+
899895 if ( $wgUser->isLoggedIn() ) {
900896 /**
901897 * To make it harder for someone to slip a user a page
Index: trunk/phase3/languages/Language.php
@@ -292,6 +292,15 @@
293293 ** sitesupport-url|sitesupport
294294 ',
295295
 296+'editpage-template' => '
 297+$SUMMARY
 298+$CHECKBOXES
 299+$BUTTONS
 300+$EDITTOOLS
 301+$COPYRIGHTWARNING
 302+$TEMPLATES
 303+',
 304+
296305 # User preference toggles
297306 'tog-underline' => 'Underline links:',
298307 'tog-highlightbroken' => 'Format broken links <a href="" class="new">like this</a> (alternative: like this<a href="" class="internal">?</a>).',

Status & tagging log