[-] 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
|
* @param string $hookName Hook name
|
||||||
* @return integer Hook ID
|
* @return integer Hook ID
|
||||||
*
|
*
|
||||||
* @deprecated since 1.5
|
* @deprecated since 1.5.0 use Hook::getIdByName() instead
|
||||||
*/
|
*/
|
||||||
public static function get($hookName)
|
public static function get($hookName)
|
||||||
{
|
{
|
||||||
Tools::displayAsDeprecated();
|
Tools::displayAsDeprecated();
|
||||||
if (!Validate::isHookName($hookName))
|
if (!Validate::isHookName($hookName))
|
||||||
die(Tools::displayError());
|
die(Tools::displayError());
|
||||||
|
|
||||||
$result = Db::getInstance()->getRow('
|
$result = Db::getInstance()->getRow('
|
||||||
SELECT `id_hook`, `name`
|
SELECT `id_hook`, `name`
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ class blocksharefb extends Module
|
|||||||
public function uninstall()
|
public function uninstall()
|
||||||
{
|
{
|
||||||
//Delete configuration
|
//Delete configuration
|
||||||
return (parent::uninstall() AND $this->unregisterHook(Hook::get('extraLeft')));
|
return (parent::uninstall() AND $this->unregisterHook(Hook::getIdByName('extraLeft')));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hookExtraLeft($params)
|
public function hookExtraLeft($params)
|
||||||
|
|||||||
Reference in New Issue
Block a user