From: Roan Kattouw Date: Tue, 11 Jan 2011 13:41:40 +0000 (+0000) Subject: Apply array_unique() to module lists in OutputPage, should prevent lots of duplicate... X-Git-Tag: 1.31.0-rc.0~32629 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=489281060bc3a25114b028db7d9b8ac6c50721f0;p=lhc%2Fweb%2Fwiklou.git Apply array_unique() to module lists in OutputPage, should prevent lots of duplicate 'ext.liquidThreads' elements in the module array reported by thedj --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 81eefa582e..6d28ced2b8 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -233,7 +233,7 @@ class OutputPage { * @return Array of module names */ public function getModules() { - return $this->mModules; + return array_unique( $this->mModules ); } /** @@ -252,7 +252,7 @@ class OutputPage { * @return array of module names */ public function getModuleScripts() { - return $this->mModuleScripts; + return array_unique( $this->mModuleScripts ); } /** @@ -272,7 +272,7 @@ class OutputPage { * @return Array of module names */ public function getModuleStyles() { - return $this->mModuleStyles; + return array_unique( $this->mModuleStyles ); } /** @@ -292,7 +292,7 @@ class OutputPage { * @return Array of module names */ public function getModuleMessages() { - return $this->mModuleMessages; + return array_unique( $this->mModuleMessages ); } /**