Skip to content

Commit

Permalink
// hide deprecated msg for Module::isInstalled
Browse files Browse the repository at this point in the history
  • Loading branch information
julienbourdeau committed Mar 21, 2016
1 parent 2aadfc1 commit cdb09e2
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions classes/module/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -683,13 +683,11 @@ public function uninstall()
* @param array|string $name
* @return true if succeed
* @since 1.4.1
* @deprecated since version 1.7.
* @deprecated since 1.7
* @see PrestaShop\PrestaShop\Core\Addon\Module\ModuleManager->enable($name)
*/
public static function enableByName($name)
{
Tools::displayAsDeprecated('Deprecated since 1.7. Use PrestaShop\PrestaShop\Core\Addon\Module\ModuleManager->enable($name) instead');

// If $name is not an array, we set it as an array
if (!is_array($name)) {
$name = array($name);
Expand Down Expand Up @@ -783,13 +781,11 @@ public function disableDevice($device)
* @param array|string $name
* @return true if succeed
* @since 1.4.1
* @deprecated since version 1.7.
* @deprecated since 1.7
* @see PrestaShop\PrestaShop\Core\Addon\Module\ModuleManager->disable($name)
*/
public static function disableByName($name)
{
Tools::displayAsDeprecated('Deprecated since 1.7. Use PrestaShop\PrestaShop\Core\Addon\Module\ModuleManager->enable($name) instead');

// If $name is not an array, we set it as an array
if (!is_array($name)) {
$name = array($name);
Expand Down Expand Up @@ -2071,13 +2067,11 @@ public function getExceptions($id_hook, $dispatch = false)
* @param string $module_name
* @return bool
*
* @deprecated since version 1.7
* @deprecated since 1.7
* @see PrestaShop\PrestaShop\Core\Addon\Module\ModuleManager->isInstalled($name)
*/
public static function isInstalled($module_name)
{
Tools::displayAsDeprecated('Deprecated since 1.7. Use PrestaShop\PrestaShop\Core\Addon\Module\ModuleManager->isInstalled($name) instead');
if (!Cache::isStored('Module::isInstalled'.$module_name)) {
$id_module = Module::getModuleIdByName($module_name);
Cache::store('Module::isInstalled'.$module_name, (bool)$id_module);
Expand Down

0 comments on commit cdb09e2

Please sign in to comment.