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:
parent
635e084ed1
commit
c7b565d586
@ -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() {
|
||||
|
@ -63,7 +63,7 @@ class DiscussionCount implements YagaRule{
|
||||
}
|
||||
|
||||
public function Hooks() {
|
||||
return array('Base_AfterGetSession');
|
||||
return array('Gdn_Dispatcher_AppStartup');
|
||||
}
|
||||
|
||||
public function Description() {
|
||||
|
@ -54,7 +54,7 @@ class HolidayVisit implements YagaRule {
|
||||
}
|
||||
|
||||
public function Hooks() {
|
||||
return array('Base_AfterGetSession');
|
||||
return array('Gdn_Dispatcher_AppStartup');
|
||||
}
|
||||
|
||||
public function Description() {
|
||||
|
@ -49,7 +49,7 @@ class LengthOfService implements YagaRule {
|
||||
}
|
||||
|
||||
public function Hooks() {
|
||||
return array('Base_AfterGetSession');
|
||||
return array('Gdn_Dispatcher_AppStartup');
|
||||
}
|
||||
|
||||
public function Description() {
|
||||
|
@ -27,7 +27,7 @@ class PhotoExists implements YagaRule {
|
||||
}
|
||||
|
||||
public function Hooks() {
|
||||
return array('Base_AfterGetSession');
|
||||
return array('Gdn_Dispatcher_AppStartup');
|
||||
}
|
||||
|
||||
public function Description() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user