Skip to content
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

Merged
merged 10 commits into from
Nov 25, 2024

Conversation

skenow
Copy link
Contributor

@skenow skenow commented Nov 25, 2024

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

@skenow skenow added this to the 2.0.0 (new) milestone Nov 25, 2024
@skenow skenow requested review from MekDrop and fiammybe November 25, 2024 18:59
htdocs/include/notification_select.php Show resolved Hide resolved
htdocs/include/notification_select.php Show resolved Hide resolved
htdocs/include/notification_select.php Show resolved Hide resolved
htdocs/include/notification_select.php Show resolved Hide resolved
htdocs/include/notification_select.php Show resolved Hide resolved
}
$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;
Copy link

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

Copy link
Member

@fiammybe fiammybe left a 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.

@fiammybe fiammybe merged commit edefe1e into ImpressCMS:2.0.x Nov 25, 2024
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Several areas affected by using $icmsModule instead of icms::$module
2 participants