-
Notifications
You must be signed in to change notification settings - Fork 451
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
[Registration Notification] The plugin is mistakenly checking if it's active using the main context settings #6696
Comments
I'm not certain, but I think the |
The reasoning for this is documented in
|
Interestingly, this makes a big difference when the plugin is a sitewide plugin. Currently, without a specific context passed in, a sitewide plugin will presume that pkp-lib/classes/plugins/LazyLoadPlugin.inc.php Lines 69 to 78 in ee06636
But generally (without addtional footwork in the plugin code) enabling a sitewide plugin will act on the specific context, leading to a bug like: pkp/shibboleth#3 The ability of a sitewide plugin to act specifically within a context is often desirable, so this leads to some crazy plugin code: |
I think it is certainly a fork of the endless morass of #1923 . |
Describe the bug
The plugin is checking if it's active using the "main context", but it's currently not a site-wide plugin.
What application are you using?
OJS 3.3
Additional information
$this->getEnabled($mainContextId)
The text was updated successfully, but these errors were encountered: