Update Admin\Parser page
This commit is contained in:
parent
df1e9c2aa3
commit
02b60f6e81
1 changed files with 3 additions and 3 deletions
|
@ -228,7 +228,7 @@ class BBCode extends Parser
|
|||
return $this->c->Message->message($this->c->Csrf->getError());
|
||||
}
|
||||
|
||||
$this->c->bbcode->delete((int) $args['id']);
|
||||
$this->c->bbcode->delete($args['id']);
|
||||
|
||||
return $this->c->Redirect->page('AdminBBCode')->message('BBCode deleted redirect');
|
||||
}
|
||||
|
@ -241,7 +241,7 @@ class BBCode extends Parser
|
|||
$this->c->bbcode->load();
|
||||
|
||||
$structure = $this->c->BBStructure;
|
||||
$id = isset($args['id']) ? (int) $args['id'] : 0;
|
||||
$id = $args['id'] ?? 0;
|
||||
if ($id > 0) {
|
||||
if (
|
||||
empty($this->c->bbcode->bbcodeTable[$id])
|
||||
|
@ -651,7 +651,7 @@ class BBCode extends Parser
|
|||
return $this->c->Message->message($this->c->Csrf->getError());
|
||||
}
|
||||
|
||||
$id = (int) $args['id'];
|
||||
$id = $args['id'];
|
||||
|
||||
$structure = $this->c->BBStructure
|
||||
->fromString($this->c->bbcode->load()->bbcodeTable[$id]['bb_structure'])
|
||||
|
|
Loading…
Add table
Reference in a new issue