If there's an onlineupgrade.php, installer index.php will link to that instead of upgrade.php (future readiness ;))
authorDan
Sun, 11 Jan 2009 21:31:27 -0500
changeset 804 4891baa203da
parent 803 ab64a963e492
child 805 b2dc28b9f367
If there's an onlineupgrade.php, installer index.php will link to that instead of upgrade.php (future readiness ;))
install/index.php
--- a/install/index.php	Sun Jan 11 21:30:46 2009 -0500
+++ b/install/index.php	Sun Jan 11 21:31:27 2009 -0500
@@ -115,8 +115,9 @@
                   }
                   else
                   {
+                    $upgrade_script = file_exists('./install/onlineupgrade.php') ? 'onlineupgrade.php' : 'upgrade.php';
                     if ( HAVE_PHP5 && !isset($_GET['debug_warn_php4']) )
-                      echo '<li><a href="upgrade.php" class="upgrade icon">Upgrade</a></li>';
+                      echo '<li><a href="' . $upgrade_script . '" class="upgrade icon">Upgrade</a></li>';
                     else
                       echo '<li>
                     <span class="upgrade-disabled icon icon-disabled">