[-] MO : Remove duplicate $id_shop parameters
Remove duplicate definition of $id_shop in the getCMSPages() function. PHP7 will not accept this and returns a fatal error upon encountering this. (cherry picked from commit eadf84b21dd2736669887e8f0c57b2ca38607dfb) (cherry picked from commit c7ceb52e124b40cc40cdfab336bec16006d14397) Conflicts: blocktopmenu.php
This commit is contained in:
+1
-1
@@ -794,7 +794,7 @@ class Blocktopmenu extends Module
|
||||
}
|
||||
}
|
||||
|
||||
protected function getCMSPages($id_cms_category, $id_shop = false, $id_lang = false, $id_shop = false)
|
||||
protected function getCMSPages($id_cms_category, $id_shop = false, $id_lang = false)
|
||||
{
|
||||
$id_shop = ($id_shop !== false) ? (int)$id_shop : (int)Context::getContext()->shop->id;
|
||||
$id_lang = $id_lang ? (int)$id_lang : (int)Context::getContext()->language->id;
|
||||
|
||||
Reference in New Issue
Block a user