Skip to content

Commit

Permalink
Merge pull request #801 from abhishek-webkul/gli-1405
Browse files Browse the repository at this point in the history
Code for unused addons login feature at the back office has been commented
  • Loading branch information
rohit053 authored Mar 14, 2024
2 parents ed2da14 + da558ee commit 509008b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
10 changes: 0 additions & 10 deletions classes/controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2344,16 +2344,6 @@ public function initModal()
//Force override translation key
Context::getContext()->override_controller_name_for_translations = 'AdminModules';

$this->modals[] = array(
'modal_id' => 'modal_addons_connect',
'modal_class' => 'modal-md',
'modal_title' => '<i class="icon-puzzle-piece"></i> <a target="_blank" href="http://addons.prestashop.com/'
.'?utm_source=back-office&utm_medium=modules'
.'&utm_campaign=back-office-'.Tools::strtoupper($this->context->language->iso_code)
.'&utm_content='.(defined('_PS_HOST_MODE_') ? 'cloud' : 'download').'">PrestaShop Addons</a>',
'modal_content' => $this->context->smarty->fetch('controllers/modules/login_addons.tpl'),
);

//After override translation, remove it
Context::getContext()->override_controller_name_for_translations = null;
}
Expand Down
8 changes: 0 additions & 8 deletions controllers/admin/AdminModulesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1377,14 +1377,6 @@ public function initModal()
'modal_title' => ($this->context->mode == Context::MODE_HOST) ? $this->l('This module cannot be installed') : $this->l('Important Notice'),
'modal_content' => $modal_content
);

$modal_content = $this->context->smarty->fetch('controllers/modules/modal_not_trusted_country.tpl');
$this->modals[] = array(
'modal_id' => 'moduleNotTrustedCountry',
'modal_class' => 'modal-lg',
'modal_title' => $this->l('This module is Untrusted for your country'),
'modal_content' => $modal_content
);
}

public function initContent()
Expand Down

0 comments on commit 509008b

Please sign in to comment.