Some fixes and changes to run css

This commit is contained in:
Chris
2018-10-30 14:58:45 +00:00
parent 488fee7b4b
commit 125b9f4160
5 changed files with 58 additions and 8 deletions

View File

@@ -161,13 +161,21 @@ class Item extends Model
public function getconfig()
{
if(!isset($this->description) || empty($this->description)) return false;
$explode = explode('\\', $this->class);
if(!isset($this->description) || empty($this->description)) {
$config = new \stdClass;
$config->name = end($explode);
$config->enabled = false;
return $config;
}
$config = json_decode($this->description);
$explode = explode('\\', $this->class);
$config->name = end($explode);
$config->url = $this->url;