OpenCart 2.2.0.0_a1 - что нового?
Адмика
- Lay-Buy
- Cardinity
- Eway
- Lay-Buy
- sagepay
Структура
// Version define('VERSION', '2.2.0.0_a1'); // Configuration if (is_file('config.php')) { require_once('config.php'); } // Install if (!defined('DIR_APPLICATION')) { header('Location: install/index.php'); exit; } // Startup require_once(DIR_SYSTEM . 'startup.php'); $application_config = 'catalog'; // Application require_once(DIR_SYSTEM . 'framework.php');
- startup.php
- session.php
- seo_url.php
- router.php
- maintenance.php
- event.php
- error.php
- theme.php
- debug.php
- weight.php
- user.php
- tax.php
- length.php
- customer.php
- currency.php
- cart.php
- affiliate.php
- db.php
- file.php
По коду
'href' => $this->url->link('common/dashboard', 'token=' . $this->session->data['token'], 'SSL')
'href' => $this->url->link('common/dashboard', 'token=' . $this->session->data['token'], true)
public function __construct($ssl = false) {
$this->response->setOutput($this->load->view('analytics/google_analytics.tpl', $data));
$this->response->setOutput($this->load->view('analytics/google_analytics', $data));
public function render($template) { return $this->adaptor->render($template); }
$template = new Template('basic');
$this->language->load('catalog/attribute_group');
$this->load->language('catalog/attribute_group');
$this->registry->get('event')->trigger('language/' . $route . '/before', $route); $this->registry->get('language')->load($route); $this->registry->get('event')->trigger('language/' . $route . '/after', $route);
Также картинка языка теперь в папке самого языка, а не в папке image,
<img src="image/flags/<?php echo $language['image']; ?>" alt="<?php echo $language['name']; ?>" title="<?php echo $language['name']; ?>">
<img src="catalog/language/<?php echo $language['code']; ?>/<?php echo $language['code']; ?>.png" alt="<?php echo $language['name']; ?>" title=">
if (version_compare(VERSION, '2.0.1', '>=')) { $this->load->model('extension/event'); $this->model_extension_event->addEvent('openbay', 'post.admin.product.delete', 'extension/openbay/eventDeleteProduct'); $this->model_extension_event->addEvent('openbay', 'post.admin.product.edit', 'extension/openbay/eventEditProduct'); } else { $this->load->model('tool/event'); $this->model_tool_event->addEvent('openbay', 'post.product.delete', 'extension/openbay/eventDeleteProduct'); $this->model_tool_event->addEvent('openbay', 'post.product.edit', 'extension/openbay/eventEditProduct'); }
$this->load->model('extension/event'); $this->model_extension_event->addEvent('openbay', 'admin/model/catalog/product/deleteProduct/before', 'extension/openbay/eventDeleteProduct'); $this->model_extension_event->addEvent('openbay', 'admin/model/catalog/product/editProduct/before', 'extension/openbay/eventEditProduct');
if (version_compare(VERSION, '2.0.1', '>=')) { $this->load->model('extension/event'); $this->model_extension_event->deleteEvent('openbay'); } else { $this->load->model('tool/event'); $this->model_tool_event->deleteEvent('openbay'); }
$this->model_extension_event->deleteEvent('openbay');
$this->event->trigger('pre.view.' . str_replace('/', '.', $template), $data);
$result = $this->registry->get('event')->trigger('view/' . $route . '/before', array(&$route, &$data));
- system/engine/loader.php
- catalog/model/openbay/etsy_order.php
- catalog/model/openbay/ebay_openbay.php
- catalog/controller/startup/router.php
- admin/controller/startup/router.php
if (utf8_strlen($email) > 0 && preg_match('/^[^\@]+@.*.[a-z]{2,15}$/i', $email)) {
if (utf8_strlen($email) > 0 && filter_var($email, FILTER_VALIDATE_EMAIL)) {
Заключение
Если вы обнаружили другие изменения - пишите в комментариях.
Комментарии
Спасибо, буду сюда заходить
Добавить комментарий