function __construct($config = array()) { if (!HIKASHOP_J16) { $this->toggle = array('published' => 'id'); $this->pkeys = array('id'); } else { $this->toggle = array('enabled' => 'extension_id'); $this->pkeys = array('extension_id'); } return parent::__construct($config); }
function __construct($config = array()) { if (version_compare(JVERSION, '1.6', '<')) { $this->toggle = array('published' => 'id'); $this->pkeys = array('id'); } else { $this->toggle = array('enabled' => 'extension_id'); $this->pkeys = array('extension_id'); } return parent::__construct($config); }