Open oBlissing opened 3 years ago
@oBlissing, I think you are in the same situation as https://github.com/pkp/pkp-lib/issues/6137, where the plugin was somehow enabled site-wide when it's intended to be enabled/disabled for each plugin separately. Do you have any insight on how this happened? Were there any unusual steps in installing/enabling the plugin?
@asmecher That explains it. I am intending to use it site-wide, so the site-wide installation was intentional :) Looks like I'll have to look elsewhere to solve this. Thanks for the quick response!
@oBlissing, where did you get the code you installed from? Is it one of the github repositories directly (e.g. the main
branch), or one of the release .tar.gz
packages? If the latter, what version?
@asmecher I downloaded the latest tar from the release
-section on this repository page.
From this link: https://github.com/pkp/customLocale/releases/download/v1_1_0-1/customLocale-v1_1_0-1.tar.gz
@oBlissing, at a glance, support for this plugin at the site level could be added very easily by simply using:
$context ? $context->getId() : CONTEXT_SITE
...in place of...
$context->getId()
If you're handy with PHP, you might give this a quick try. Your confirmation (and, if it works, a pull request) will help get this included in the next release!
Setup:
customLocale v1_1_0-1
PHP 7.4
OJS 3.3.0-6
Windows 10
Installed by extracting tar into
<ojs>/plugins/generic/
https://github.com/pkp/customLocale/blob/0ea1b88e1216bd2006558aecb79c6e75f7549817/CustomLocalePlugin.inc.php#L32