浏览代码

Setup wizard cosmetics: added a "Reload" button to refresh the first page of the wizard when the prerequisites are not met.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3413 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 10 年之前
父节点
当前提交
6d1fbfda61
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      setup/wizardcontroller.class.inc.php
  2. 1 0
      setup/wizardsteps.class.inc.php

+ 1 - 0
setup/wizardcontroller.class.inc.php

@@ -176,6 +176,7 @@ class WizardController
 					$oP->add("<h2>Fatal error</h2>\n");
 					$oP->add("<h2>Fatal error</h2>\n");
 					$oP->error("<b>Error:</b> the configuration file '".$sConfigFile."' already exists and cannot be overwritten.");
 					$oP->error("<b>Error:</b> the configuration file '".$sConfigFile."' already exists and cannot be overwritten.");
 					$oP->p("The wizard cannot modify the configuration file for you. If you want to upgrade ".ITOP_APPLICATION.", make sure that the file '<b>".realpath($sConfigFile)."</b>' can be modified by the web server.");
 					$oP->p("The wizard cannot modify the configuration file for you. If you want to upgrade ".ITOP_APPLICATION.", make sure that the file '<b>".realpath($sConfigFile)."</b>' can be modified by the web server.");
+					$oP->p('<button type="button" onclick="window.location.reload()">Reload</button>');
 					$oP->output();
 					$oP->output();
 					return;
 					return;
 				}
 				}

+ 1 - 0
setup/wizardsteps.class.inc.php

@@ -138,6 +138,7 @@ EOF
 		if (!$this->bCanMoveForward)
 		if (!$this->bCanMoveForward)
 		{
 		{
 			$oPage->p('Sorry, the installation cannot continue. Please fix the errors and reload this page to launch the installation again.');
 			$oPage->p('Sorry, the installation cannot continue. Please fix the errors and reload this page to launch the installation again.');
+			$oPage->p('<button type="button" onclick="window.location.reload()">Reload</button>');
 		}
 		}
 	}
 	}