MediaWiki r55129 - Code Review

Jump to: navigation, search
Repository:MediaWiki
Revision:r55128‎ | r55129 (on ViewVC)‎ | r55130 >
Date:07:51, 16 August 2009
Author:demon
Status:reverted (Comments)
Tags:
Comment:
Tweak menu listings so we link to all install pages we can, was previously only linking the static pages. Static pages like release notes still need some formatting tweaking.
Modified paths:

Diff [purge]

Index: branches/new-installer/phase3/includes/installer/WebInstaller.php
===================================================================
--- branches/new-installer/phase3/includes/installer/WebInstaller.php	(revision 55128)
+++ branches/new-installer/phase3/includes/installer/WebInstaller.php	(revision 55129)
@@ -338,7 +338,8 @@
 		$name = wfMsg( 'config-page-' . strtolower( $pageName ) );
 		if ( $enabled ) {
 			$query = array( 'page' => $pageName );
-			if ( !in_array( $pageName, $this->pageSequence ) ) {
+			if ( in_array( $pageName, $this->pageSequence ) ||
+				in_array( $pageName, $this->otherPages ) ) {
 				if ( in_array( $currentPageName, $this->pageSequence ) ) {
 					$query['lastPage'] = $currentPageName;
 				}

Follow-up revisions

Rev.Commit summaryAuthorDate
r55164Revert r55129, has issues with proper validation of variables when skipping b...demon02:55, 17 August 2009

Comments

#Comment by Tim Starling (Talk | contribs)   02:46, 17 August 2009

I don't think you have the faintest clue what you're doing. Those links were removed early on in the development process due to the problem of interactions between pages, where one page sets variables to be used by the next. The DBConnect and DBSettings pages in particular were a problem, if you allow forward links, then the user could skip back to set a different DB type and then skip the DBSettings page for that DB type, leading to uninitialised variables at the install stage. By making the user click the submit buttons on each page, thus accepting the defaults, you ensure that each page class has the opportunity to initialise variables.

Suggest revert.

#Comment by ^demon (Talk | contribs)   02:55, 17 August 2009

Reverted in r55164

Status & tagging log

  • 02:55, 17 August 2009 ^demon (Talk | contribs) changed the status of r55129 [removed: fixme added: reverted]
  • 02:46, 17 August 2009 Tim Starling (Talk | contribs) changed the status of r55129 [removed: new added: fixme]
Personal tools
Namespaces
Variants
Views
Actions
Site
Support
Download
Development
Communication
Toolbox