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

This commit is contained in:
mDeflotte committed 2012-03-27 15:28:06 +00:00
1 parent 9cc71c1551
commit 7fd24a0bd1
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -536,7 +536,7 @@ 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)
{ {
+1 -1
View File
@@ -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)