summaryrefslogtreecommitdiffstats
path: root/lib/SimpleSAML/Module.php
diff options
context:
space:
mode:
authorOlav Morken <olav.morken@uninett.no>2010-11-26 14:43:21 +0000
committerOlav Morken <olav.morken@uninett.no>2010-11-26 14:43:21 +0000
commit585fe2e2d3e7f7a7e9ec37c2cf19dc8cd6185fa3 (patch)
tree7a06ee4769eff26728e145b93771551c15788183 /lib/SimpleSAML/Module.php
parentd4199a5ab3cfb433fdf59d409b6388251324f3c9 (diff)
downloadsimplesamlphp-585fe2e2d3e7f7a7e9ec37c2cf19dc8cd6185fa3.zip
simplesamlphp-585fe2e2d3e7f7a7e9ec37c2cf19dc8cd6185fa3.tar.gz
simplesamlphp-585fe2e2d3e7f7a7e9ec37c2cf19dc8cd6185fa3.tar.bz2
Module: Ensure stable order of hook-functions.
git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2657 44740490-163a-0410-bde0-09ae8108e29a
Diffstat (limited to 'lib/SimpleSAML/Module.php')
-rw-r--r--lib/SimpleSAML/Module.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/SimpleSAML/Module.php b/lib/SimpleSAML/Module.php
index 3ae590d..3ef7588 100644
--- a/lib/SimpleSAML/Module.php
+++ b/lib/SimpleSAML/Module.php
@@ -162,7 +162,9 @@ class SimpleSAML_Module {
public static function callHooks($hook, &$data = NULL) {
assert('is_string($hook)');
- foreach (self::getModules() as $module) {
+ $modules = self::getModules();
+ sort($modules);
+ foreach ($modules as $module) {
if (!self::isModuleEnabled($module)) {
continue;
}