-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert to current global for $icmsModule #1595
Conversation
…sCMS#1593 The correct object is icms::$module
icms::$module is the proper object to use. See ImpressCMS#1593
…S#1593 Who's Online would not users active in modules Notifications would not show at all
There were some legacy code blocks that no longer are effective and just added to the overhead - removed those.]
…mpresscms.git into 2.0.x-globals-remapping
And doing some basic filtering on the $_POST variable
} | ||
$notification_handler = icms::handler('icms_data_notification'); | ||
// Now build the a nested associative array of info to pass | ||
// to the block template. | ||
$block = array(); | ||
$categories = &$notification_handler->subscribableCategoryInfo(); | ||
if (empty($categories)) { | ||
return FALSE; | ||
return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Returning type false
but b_system_notification_show()
is declared to return array
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incredible I could have missed so many. I did do a search in the code, but I'm starting to suspect I had local changes already that weren't on Github. Some of these locations don't ring a bell, so you will certainly have found more instances than I did.
Regression testing uncovered several core elements that needed adjustment after the change in the global for $icmsModule. This converts the remaining variable references and resolves #1593