forked from GNUsocial/gnu-social
Check to make sure a design exists before trying to display it
This commit is contained in:
parent
37cafad2e0
commit
c3c30aa0ea
@ -58,8 +58,11 @@ class CurrentUserDesignAction extends Action
|
|||||||
parent::showStylesheets();
|
parent::showStylesheets();
|
||||||
|
|
||||||
$design = $this->getDesign();
|
$design = $this->getDesign();
|
||||||
|
|
||||||
|
if (!empty($design)) {
|
||||||
$design->showCSS($this);
|
$design->showCSS($this);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A design for this action
|
* A design for this action
|
||||||
|
@ -62,8 +62,11 @@ class OwnerDesignAction extends Action {
|
|||||||
parent::showStylesheets();
|
parent::showStylesheets();
|
||||||
|
|
||||||
$design = $this->getDesign();
|
$design = $this->getDesign();
|
||||||
|
|
||||||
|
if (!empty($design)) {
|
||||||
$design->showCSS($this);
|
$design->showCSS($this);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A design for this action
|
* A design for this action
|
||||||
|
Loading…
Reference in New Issue
Block a user