31 lines
993 B
PHP
31 lines
993 B
PHP
<?php
|
|
/**
|
|
* 2007-2016 PrestaShop
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2015 PrestaShop SA
|
|
* @license http://addons.prestashop.com/en/content/12-terms-and-conditions-of-use
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/
|
|
|
|
class AdminAjaxPsSiteMapController extends ModuleAdminController
|
|
{
|
|
public function ajaxProcessUpdateExportElement()
|
|
{
|
|
$id_element = Tools::getValue('id_element');
|
|
$type = Tools::getValue('type');
|
|
$type = Tools::substr($type, 0, -4);
|
|
$export = Tools::getValue('active');
|
|
|
|
if ((int)$id_element != '' && $type != '' && $export != '') {
|
|
die($this->module->saveExportElement($id_element, $type, $export));
|
|
}
|
|
}
|
|
}
|