Umbau der Statistik Ausgabe (each enfernt)
Optimierungen
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
define('PICONTROL', true);
|
||||
const PICONTROL = true;
|
||||
|
||||
(include_once realpath(dirname(__FILE__)).'/../init.php') or die('Error: 0x0000');
|
||||
(include_once LIBRARY_PATH.'main/tpl.class.php') or die('Error: 0x0001');
|
||||
@@ -18,10 +18,10 @@ $updateStatus = $updateController->fetchData();
|
||||
|
||||
if ($updateStatus === true) {
|
||||
$nextUpdate = $updateController->getNextUpdate();
|
||||
|
||||
|
||||
if ($nextUpdate instanceof Update) {
|
||||
$downloadStatus = $updateController->download($nextUpdate);
|
||||
|
||||
|
||||
if ($downloadStatus === true) {
|
||||
$tpl->redirect('?s=settings&do=update&complete');
|
||||
} elseif ($downloadStatus === 10) {
|
||||
@@ -41,4 +41,4 @@ if ($updateStatus === true) {
|
||||
if (isset($errorMsg)) {
|
||||
$tpl->assign('content', '<div class="inner-header"><span>'._t('Aktualisierung').'</span></div><div class="inner red">'.$errorMsg.'</div><div class="inner-end"><a href="?s=settings&do=update" class="button">'._t('Zurück zur Aktualisierung').'</a></div>');
|
||||
$tpl->draw('single_box');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user