From 79b90008b8f381ec4dbee390ca5ff40424d86c22 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 10 Feb 2013 04:05:26 +0100 Subject: [PATCH] Template listener order is now deterministic First installed will be the first one to be invoked --- .../system/cache/builder/TemplateListenerCacheBuilder.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wcfsetup/install/files/lib/system/cache/builder/TemplateListenerCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/TemplateListenerCacheBuilder.class.php index 72e3133c20..21bf59e8ac 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/TemplateListenerCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/TemplateListenerCacheBuilder.class.php @@ -20,6 +20,7 @@ class TemplateListenerCacheBuilder extends AbstractCacheBuilder { // get templates for current package id $templateListenerList = new TemplateListenerList(); $templateListenerList->getConditionBuilder()->add("template_listener.environment = ?", array($parameters['environment'])); + $templateListenerList->sqlOrderBy = "template_listener.listenerID ASC"; $templateListenerList->readObjects(); $data = array(); -- 2.20.1