From c7b565d5868670260ffc4edfb636cb330d7db105 Mon Sep 17 00:00:00 2001 From: Zachary Doll Date: Thu, 30 Jan 2014 15:58:10 -0600 Subject: [PATCH] Fix missing function by using AppStartup hook Status based rules using the after get session hook were unable to utilize functions declared in functions.render.php since the session is started before they are defined. This fixes an issue with sending out email notifications. --- library/rules/class.commentcount.php | 2 +- library/rules/class.discussioncount.php | 2 +- library/rules/class.holidayvisit.php | 2 +- library/rules/class.lengthofservice.php | 2 +- library/rules/class.photoexists.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/library/rules/class.commentcount.php b/library/rules/class.commentcount.php index 7401bf3..5bac141 100644 --- a/library/rules/class.commentcount.php +++ b/library/rules/class.commentcount.php @@ -62,7 +62,7 @@ class CommentCount implements YagaRule{ $Form->SetValidationResults($Validation->Results()); } public function Hooks() { - return array('Base_AfterGetSession'); + return array('Gdn_Dispatcher_AppStartup'); } public function Description() { diff --git a/library/rules/class.discussioncount.php b/library/rules/class.discussioncount.php index 354e70f..fafe863 100644 --- a/library/rules/class.discussioncount.php +++ b/library/rules/class.discussioncount.php @@ -63,7 +63,7 @@ class DiscussionCount implements YagaRule{ } public function Hooks() { - return array('Base_AfterGetSession'); + return array('Gdn_Dispatcher_AppStartup'); } public function Description() { diff --git a/library/rules/class.holidayvisit.php b/library/rules/class.holidayvisit.php index 4aa581e..ff85694 100644 --- a/library/rules/class.holidayvisit.php +++ b/library/rules/class.holidayvisit.php @@ -54,7 +54,7 @@ class HolidayVisit implements YagaRule { } public function Hooks() { - return array('Base_AfterGetSession'); + return array('Gdn_Dispatcher_AppStartup'); } public function Description() { diff --git a/library/rules/class.lengthofservice.php b/library/rules/class.lengthofservice.php index 66d64c1..f635375 100644 --- a/library/rules/class.lengthofservice.php +++ b/library/rules/class.lengthofservice.php @@ -49,7 +49,7 @@ class LengthOfService implements YagaRule { } public function Hooks() { - return array('Base_AfterGetSession'); + return array('Gdn_Dispatcher_AppStartup'); } public function Description() { diff --git a/library/rules/class.photoexists.php b/library/rules/class.photoexists.php index 886b83e..5cac918 100644 --- a/library/rules/class.photoexists.php +++ b/library/rules/class.photoexists.php @@ -27,7 +27,7 @@ class PhotoExists implements YagaRule { } public function Hooks() { - return array('Base_AfterGetSession'); + return array('Gdn_Dispatcher_AppStartup'); } public function Description() {