Skip to content
Snippets Groups Projects
Commit 585fe2e2 authored by Olav Morken's avatar Olav Morken
Browse files

Module: Ensure stable order of hook-functions.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2657 44740490-163a-0410-bde0-09ae8108e29a
parent d4199a5a
No related branches found
No related tags found
No related merge requests found
...@@ -162,7 +162,9 @@ class SimpleSAML_Module { ...@@ -162,7 +162,9 @@ class SimpleSAML_Module {
public static function callHooks($hook, &$data = NULL) { public static function callHooks($hook, &$data = NULL) {
assert('is_string($hook)'); assert('is_string($hook)');
foreach (self::getModules() as $module) { $modules = self::getModules();
sort($modules);
foreach ($modules as $module) {
if (!self::isModuleEnabled($module)) { if (!self::isModuleEnabled($module)) {
continue; continue;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment