From: Alexander Ebert Date: Sun, 10 Feb 2013 03:05:26 +0000 (+0100) Subject: Template listener order is now deterministic X-Git-Tag: 2.0.0_Beta_1~493^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=79b90008b8f381ec4dbee390ca5ff40424d86c22;p=GitHub%2FWoltLab%2FWCF.git Template listener order is now deterministic First installed will be the first one to be invoked --- 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();