public function __construct($registry) { $this->registry = $registry; /* Journal2 Theme modification */ if (defined('HTTP_OPENCART')) { self::$IS_INSTALLER = true; } else { if (defined('VERSION')) { global $config; self::$IS_JOURNAL = $config->get('config_template') === 'journal2'; self::$IS_OC2 = version_compare(VERSION, '2', '>='); if (defined('HTTP_CATALOG') || defined('HTTPS_CATALOG')) { $url1 = new Url(HTTP_SERVER, HTTPS_SERVER); $url2 = new Url(defined('HTTP_CATALOG') ? HTTP_CATALOG : HTTPS_CATALOG, defined('HTTPS_CATALOG') ? HTTPS_CATALOG : HTTP_CATALOG); $url1 = parse_url($url1->link('')); $url2 = parse_url($url2->link('')); self::$IS_ADMIN = $url1['host'] . $url1['path'] !== $url2['host'] . $url2['path']; } } } /* End of Journal2 Theme modification */ }