summaryrefslogtreecommitdiffstats
path: root/update.php
diff options
context:
space:
mode:
Diffstat (limited to 'update.php')
-rw-r--r--update.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/update.php b/update.php
index e270565d..33361fdc 100644
--- a/update.php
+++ b/update.php
@@ -24,17 +24,17 @@ define('NO_SESSION','1');
require 'lib/init.php';
// Get the version and format it
-$version = Update::get_version();
+$version = Update::get_version();
+
+if ($_REQUEST['action'] == 'update') {
-if ($_REQUEST['action'] == 'update') {
-
/* Run the Update Mojo Here */
Update::run_update();
/* Get the New Version */
$version = Update::get_version();
-}
+}
$htmllang = str_replace("_","-",Config::get('lang'));
?>
@@ -48,7 +48,7 @@ $htmllang = str_replace("_","-",Config::get('lang'));
<title><?php echo _('Ampache Update'); ?></title>
</head>
<body>
-<div id="header">
+<div id="header">
<h1><?php echo _('Ampache Update'); ?></h1>
<p>Pour l'Amour de la Musique.</p>
</div>