diff options
author | Olav Morken <olav.morken@uninett.no> | 2010-11-26 14:43:21 +0000 |
---|---|---|
committer | Olav Morken <olav.morken@uninett.no> | 2010-11-26 14:43:21 +0000 |
commit | 585fe2e2d3e7f7a7e9ec37c2cf19dc8cd6185fa3 (patch) | |
tree | 7a06ee4769eff26728e145b93771551c15788183 /lib/SimpleSAML/Module.php | |
parent | d4199a5ab3cfb433fdf59d409b6388251324f3c9 (diff) | |
download | simplesamlphp-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.php | 4 |
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; } |