[-] MO : #PSFV-681 - blocksharefb use deprecated Hook::get()

This commit is contained in:
mDeflotte
2012-03-27 15:28:06 +00:00
parent 69834966a5
commit c51b4bd1d8
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -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`
+1 -1
View File
@@ -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)