function preflight($type, $parent) { $app = JFactory::getApplication(); $this->core = isset($app->cck_core) ? $app->cck_core : false; if ($this->core === true) { return; } $this->cck = CCK_Install::init($parent); }
function preflight($type, $parent) { $app = JFactory::getApplication(); $this->core = isset($app->cck_core) ? $app->cck_core : false; if ($this->core === true) { return; } $this->cck = CCK_Install::init($parent); $this->cck->isApp = true; if (is_file(JPATH_ADMINISTRATOR . '/manifests/packages/' . $this->cck->xml->name . '.xml')) { $this->cck->isUpgrade = true; } else { $this->cck->isUpgrade = false; } }
function preflight($type, $parent) { $this->cck = CCK_Install::init($parent); }