[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/opencart/opencart
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkerr committed Aug 28, 2020
2 parents fdc8e56 + bff633b commit 5b126b1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function index($setting) {
$results = $this->model_design_banner->getBanner($setting['banner_id']);

foreach ($results as $result) {
if (is_file(DIR_IMAGE . $result['image'])) {
if (is_file(DIR_IMAGE . html_entity_decode($result['image'], ENT_QUOTES, 'UTF-8'))) {
$data['banners'][] = [
'title' => $result['title'],
'link' => $result['link'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public function index($setting) {

$this->load->model('design/banner');
$this->load->model('tool/image');

$this->document->addStyle('catalog/view/javascript/jquery/swiper/css/swiper.min.css');
$this->document->addStyle('catalog/view/javascript/jquery/swiper/css/opencart.css');
$this->document->addScript('catalog/view/javascript/jquery/swiper/js/swiper.jquery.js');
Expand All @@ -16,7 +16,7 @@ public function index($setting) {
$results = $this->model_design_banner->getBanner($setting['banner_id']);

foreach ($results as $result) {
if (is_file(DIR_IMAGE . $result['image'])) {
if (is_file(DIR_IMAGE . html_entity_decode($result['image'], ENT_QUOTES, 'UTF-8'))) {
$data['banners'][] = [
'title' => $result['title'],
'link' => $result['link'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ public function index($setting) {
$this->document->addStyle('catalog/view/javascript/jquery/swiper/css/swiper.min.css');
$this->document->addStyle('catalog/view/javascript/jquery/swiper/css/opencart.css');
$this->document->addScript('catalog/view/javascript/jquery/swiper/js/swiper.jquery.js');

$data['banners'] = [];

$results = $this->model_design_banner->getBanner($setting['banner_id']);

foreach ($results as $result) {
if (is_file(DIR_IMAGE . $result['image'])) {
if (is_file(DIR_IMAGE . html_entity_decode($result['image'], ENT_QUOTES, 'UTF-8'))) {
$data['banners'][] = [
'title' => $result['title'],
'link' => $result['link'],
Expand Down
2 changes: 1 addition & 1 deletion upload/install/opencart.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1703,7 +1703,7 @@ INSERT INTO `oc_seo_profile` (`seo_profile_id`, `name`, `key`, `regex`, `push`,
(7, 'Manufacturer', 'manufacturer_id', '(\\d+)', 'route=product/manufacturer/info', 'route,manufacturer_id', 2),
(8, 'Language', 'language', '([a-z-]+)', '', 'language', -1),
(9, 'Product', 'product_id', '(\\d+)', 'route=product/product', 'route,product_id', 100),
(10, 'Route', 'route', '([a-zA-Z0-9\/]+)', '', 'route', 0);
(10, 'Route', 'route', '([a-zA-Z0-9\/_]+)', '', 'route', 0);

-----------------------------------------------------------

Expand Down

0 comments on commit 5b126b1

Please sign in to comment.