[-] 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:
NielsH
2015-06-15 20:31:26 +02:00
committed by Sacha FROMENT
parent 4ccc2fbac1
commit 0d782ed35e
+1 -1
View File
@@ -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;