Skip to content

Commit

Permalink
Merge pull request #278 from CONTENIDO/bug/#277-broken-plugin-scan-fu…
Browse files Browse the repository at this point in the history
…nction-logic

#277 Broken plugin scan function logic.
  • Loading branch information
muratpurc committed Jan 11, 2023
2 parents 96a36cf + db66450 commit 082526e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contenido/includes/functions.general.php
Expand Up @@ -1303,7 +1303,9 @@ function isRunningFromWeb() {
* @throws cInvalidArgumentException
*/
function scanPlugins($entity) {
$cfg = cRegistry::getConfig();
// Use the global variable $cfg here, the function modifies it!
global $cfg;

$basedir = cRegistry::getBackendPath() . $cfg['path']['plugins'] . $entity . '/';

if (is_dir($basedir) === false) {
Expand Down

0 comments on commit 082526e

Please sign in to comment.