V1.4.0 released: Upsell feature, New Product Page, New Stats Module, Security fixes
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2015 PrestaShop
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
@@ -19,7 +19,7 @@
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2015 PrestaShop SA
|
||||
* @copyright 2007-2017 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
@@ -211,7 +211,12 @@ class AdminStatusesControllerCore extends AdminController
|
||||
//init and render the first list
|
||||
$this->addRowAction('edit');
|
||||
$this->addRowAction('delete');
|
||||
$this->addRowActionSkipList('delete', range(1, 14));
|
||||
|
||||
$unremovable_os = array();
|
||||
$buf = Db::getInstance()->executeS('SELECT id_order_state FROM '._DB_PREFIX_.'order_state WHERE unremovable = 1');
|
||||
foreach ($buf as $row) $unremovable_os[] = $row['id_order_state'];
|
||||
$this->addRowActionSkipList('delete', $unremovable_os);
|
||||
|
||||
$this->bulk_actions = array(
|
||||
'delete' => array(
|
||||
'text' => $this->l('Delete selected'),
|
||||
@@ -497,7 +502,7 @@ class AdminStatusesControllerCore extends AdminController
|
||||
$theme_path = '../themes/'.$theme->directory.'/mails/'; // Mail templates can also be found in the theme folder
|
||||
|
||||
$array = array();
|
||||
foreach (Language::getLanguages(true) as $language) {
|
||||
foreach (Language::getLanguages(false) as $language) {
|
||||
$iso_code = $language['iso_code'];
|
||||
|
||||
// If there is no folder for the given iso_code in /mails or in /themes/[theme_name]/mails, we bypass this language
|
||||
|
||||
Reference in New Issue
Block a user