<?php
/**
 * Page Cache powered by Jpresta (jpresta . com)
 *
 * @author    Jpresta
 * @copyright Jpresta
 * @license   You are just allowed to modify this copy for your own use. You must not redistribute it. License
 *               is permitted for one Prestashop instance only but you can install it on your test instances.
 */

/*
 * Upgrade all front controllers
 */
function upgrade_module_5_0_11($module)
{
    if (Tools::version_compare(_PS_VERSION_, '1.7', '>')) {
        $ret = $module->upgradeOverride('FrontController')
            && $module->upgradeOverride('ProductListingFrontController');
    }
    else {
        $ret = $module->upgradeOverride('FrontController');
    }

    return (bool) $ret;
}
