From 489281060bc3a25114b028db7d9b8ac6c50721f0 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 11 Jan 2011 13:41:40 +0000 Subject: [PATCH] Apply array_unique() to module lists in OutputPage, should prevent lots of duplicate 'ext.liquidThreads' elements in the module array reported by thedj --- includes/OutputPage.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 ); } /** -- 2.20.1