Index: branches/5.0.x/core/install.php =================================================================== diff -u -r12365 -r12417 --- branches/5.0.x/core/install.php (.../install.php) (revision 12365) +++ branches/5.0.x/core/install.php (.../install.php) (revision 12417) @@ -1,6 +1,6 @@ Done($errstr); } } + + /** + * Checks, that given button should be visible on current installation step + * + * @param string $name + * @return bool + */ + function buttonVisible($name) + { + $button_visibility = Array ( + 'continue' => $this->GetNextStep() != -1 || ($this->stepsPreset == 'already_installed'), + 'refresh' => in_array($this->currentStep, Array ('check_paths', 'security')), + 'back' => in_array($this->currentStep, Array (/*'select_license',*/ 'download_license', 'select_domain')), + ); + + if ($name == 'any') { + foreach ($button_visibility as $button_name => $button_visible) { + if ($button_visible) { + return true; + } + } + + return false; + } + + return array_key_exists($name, $button_visibility) ? $button_visibility[$name] : true; + } } ?> \ No newline at end of file