Template listener order is now deterministic
authorAlexander Ebert <ebert@woltlab.com>
Sun, 10 Feb 2013 03:05:26 +0000 (04:05 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 10 Feb 2013 03:05:26 +0000 (04:05 +0100)
First installed will be the first one to be invoked

wcfsetup/install/files/lib/system/cache/builder/TemplateListenerCacheBuilder.class.php

index 72e3133c2058b0e157f8791d69f6ceb92eace1cf..21bf59e8acb5aa6a2172827043be6421512f423b 100644 (file)
@@ -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();