示例#1
0
文件: plugin.php 项目: hamby/SEBLOD
 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);
 }
示例#2
0
文件: app.php 项目: hamby/SEBLOD
 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;
     }
 }
示例#3
0
 function preflight($type, $parent)
 {
     $this->cck = CCK_Install::init($parent);
 }