mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fixes #1591 specific processing for piwigo-openstreetmap and piwigo-videojs
This commit is contained in:
@@ -74,6 +74,10 @@ class plugins
|
||||
$file_to_include = PHPWG_PLUGINS_PATH . $plugin_id . '/maintain';
|
||||
$classname = $plugin_id.'_maintain';
|
||||
|
||||
// piwigo-videojs and piwigo-openstreetmap unfortunately have a "-" in their folder
|
||||
// name (=plugin_id) and a class name can't have a "-". So we have to replace with a "_"
|
||||
$classname = str_replace('-', '_', $classname);
|
||||
|
||||
// 2.7 pattern (OO only)
|
||||
if (file_exists($file_to_include.'.class.php'))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user