[-] MO : #PSFV-681 - blocksharefb use deprecated Hook::get()
This commit is contained in:
+3
-3
@@ -536,13 +536,13 @@ font-style:italic;"><img style="padding-right:5px;" src="'._MODULE_DIR_.$moduleI
|
||||
* @param string $hookName Hook name
|
||||
* @return integer Hook ID
|
||||
*
|
||||
* @deprecated since 1.5
|
||||
* @deprecated since 1.5.0 use Hook::getIdByName() instead
|
||||
*/
|
||||
public static function get($hookName)
|
||||
{
|
||||
Tools::displayAsDeprecated();
|
||||
if (!Validate::isHookName($hookName))
|
||||
die(Tools::displayError());
|
||||
if (!Validate::isHookName($hookName))
|
||||
die(Tools::displayError());
|
||||
|
||||
$result = Db::getInstance()->getRow('
|
||||
SELECT `id_hook`, `name`
|
||||
|
||||
@@ -53,7 +53,7 @@ class blocksharefb extends Module
|
||||
public function uninstall()
|
||||
{
|
||||
//Delete configuration
|
||||
return (parent::uninstall() AND $this->unregisterHook(Hook::get('extraLeft')));
|
||||
return (parent::uninstall() AND $this->unregisterHook(Hook::getIdByName('extraLeft')));
|
||||
}
|
||||
|
||||
public function hookExtraLeft($params)
|
||||
|
||||
Reference in New Issue
Block a user