yellow = $yellow; } // Handle update public function onUpdate($action) { $fileName = $this->yellow->system->get("coreExtensionDirectory").$this->yellow->system->get("coreSystemFile"); if ($action=="install") { $this->yellow->system->save($fileName, array("theme" => "stockholm")); } elseif ($action=="uninstall" && $this->yellow->system->get("theme")=="stockholm") { $this->yellow->system->save($fileName, array("theme" => $this->yellow->system->getDifferent("theme"))); } } }