//// Merge -> revision 8290
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8295 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -25,10 +25,22 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
/** remove the uncompatible module gridextjs (1.4.0.8 upgrade)
|
||||
*/
|
||||
function gridextjs_deprecated()
|
||||
{
|
||||
if (file_exists(dirname(__FILE__).'/../../modules/gridextjs'))
|
||||
return rename(dirname(__FILE__).'/../../modules/gridextjs', dirname(__FILE__).'/../../modules/gridextjs.deprecated');
|
||||
// if exists, use _PS_MODULE_DIR_ or _PS_ROOT_DIR_
|
||||
// instead of guessing the modules dir
|
||||
if (defined('_PS_MODULE_DIR_'))
|
||||
$gridextjs_path = _PS_MODULE_DIR_ . 'gridextjs';
|
||||
else
|
||||
if (defined('_PS_ROOT_DIR_'))
|
||||
$gridextjs_path = _PS_ROOT_DIR_ . '/modules/gridextjs';
|
||||
else
|
||||
$gridextjs_path = dirname(__FILE__).'/../../modules/gridextjs';
|
||||
|
||||
if (file_exists($gridextjs_path))
|
||||
return rename($gridextjs_path, str_replace('gridextjs', 'gridextjs.deprecated', $gridextjs_path));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user