From 5f248e13fe88c5cc2515a26d7d79ba2904a582bc Mon Sep 17 00:00:00 2001 From: David Mudrak Date: Mon, 29 Mar 2010 22:21:34 +0000 Subject: [PATCH] MDL-21694 Reverted the order of the locations to search for strings This reverts commit 57d864475860cd437a2aa1a1cef0059df53f9594. --- lib/moodlelib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index b3f46bdffcb..99ef07a557c 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -5901,7 +5901,8 @@ class string_manager { return $this->searchpathsformodule[$module]; } - $locations = array(); + $locations = $this->corelocations; + if (!array_key_exists($module, $this->nonpluginfiles)) { foreach ($locations as $location => $ignored) { $locations[$location] = $module . '/'; @@ -5913,7 +5914,6 @@ class string_manager { } } } - $locations = $locations + $this->corelocations; $this->searchpathsformodule[$module] = $locations; return $locations;