public function onLoad() { //If the template is from one of the templates then ignore $Config = new Config(TEMP_CONFIG_FILE, false); if ($Config->configExists()) { if (!is_null($Config->TEMPLATE) && $this->testTemplate($Config->TEMPLATE)) { $this->setEnabled(false); } } }