Update Admin\Update page
This commit is contained in:
parent
78a86f8c29
commit
b4939f5763
2 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ class Update
|
|||
$r = $this->c->Router;
|
||||
$r->add(
|
||||
$r::GET,
|
||||
'/admin/update/{uid}/{stage:\d+}[/{start:\d+}]',
|
||||
'/admin/update/{uid}/{stage|i:\d+}[/{start|i:\d+}]',
|
||||
'AdminUpdate:stage',
|
||||
'AdminUpdateStage'
|
||||
);
|
||||
|
|
|
@ -343,7 +343,7 @@ class Update extends Admin
|
|||
return $this->returnMaintenance();
|
||||
}
|
||||
|
||||
$stage = \max((int) $args['stage'], (int) $this->c->config->i_fork_revision);
|
||||
$stage = \max($args['stage'], $this->c->config->i_fork_revision);
|
||||
|
||||
do {
|
||||
if (\method_exists($this, 'stageNumber' . $stage)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue