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.
This commit is contained in:
Zachary Doll 2014-01-30 15:58:10 -06:00
parent 635e084ed1
commit c7b565d586
5 changed files with 5 additions and 5 deletions

View File

@ -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() {

View File

@ -63,7 +63,7 @@ class DiscussionCount implements YagaRule{
}
public function Hooks() {
return array('Base_AfterGetSession');
return array('Gdn_Dispatcher_AppStartup');
}
public function Description() {

View File

@ -54,7 +54,7 @@ class HolidayVisit implements YagaRule {
}
public function Hooks() {
return array('Base_AfterGetSession');
return array('Gdn_Dispatcher_AppStartup');
}
public function Description() {

View File

@ -49,7 +49,7 @@ class LengthOfService implements YagaRule {
}
public function Hooks() {
return array('Base_AfterGetSession');
return array('Gdn_Dispatcher_AppStartup');
}
public function Description() {

View File

@ -27,7 +27,7 @@ class PhotoExists implements YagaRule {
}
public function Hooks() {
return array('Base_AfterGetSession');
return array('Gdn_Dispatcher_AppStartup');
}
public function Description() {