mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 12:35:13 +00:00
class functions called incorrectly
This commit is contained in:
parent
20a79c7acf
commit
b84f7cd37f
1 changed files with 3 additions and 3 deletions
|
@ -1547,8 +1547,8 @@ class Admin extends \Zotlabs\Web\Controller {
|
|||
|
||||
// Toggle theme status
|
||||
|
||||
toggle_theme($themes, $theme, $result);
|
||||
$s = rebuild_theme_table($themes);
|
||||
$this->toggle_theme($themes, $theme, $result);
|
||||
$s = $this->rebuild_theme_table($themes);
|
||||
if($result)
|
||||
info( sprintf('Theme %s enabled.', $theme));
|
||||
else
|
||||
|
@ -1561,7 +1561,7 @@ class Admin extends \Zotlabs\Web\Controller {
|
|||
// display theme details
|
||||
require_once('library/markdown.php');
|
||||
|
||||
if (theme_status($themes,$theme)) {
|
||||
if ($this->theme_status($themes,$theme)) {
|
||||
$status="on"; $action= t("Disable");
|
||||
} else {
|
||||
$status="off"; $action= t("Enable");
|
||||
|
|
Loading…
Reference in a new issue