mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 03:09:58 +03:00
Merge 4b27719348
into ee0d29a0e9
This commit is contained in:
commit
2b41f806e3
1 changed files with 2 additions and 1 deletions
|
@ -72,7 +72,8 @@ class plugins
|
|||
private static function build_maintain_class($plugin_id)
|
||||
{
|
||||
$file_to_include = PHPWG_PLUGINS_PATH . $plugin_id . '/maintain';
|
||||
$classname = $plugin_id.'_maintain';
|
||||
$sanitized = preg_replace('[^a-zA-Z0-9_\x7f-\xff]','_',$plugin_id);
|
||||
$classname = $sanitized.'_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 "_"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue