mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-29 12:49:57 +03:00
fixes #1591 specific processing for piwigo-openstreetmap and piwigo-videojs
This commit is contained in:
parent
61a4259b41
commit
4acfca116b
4 changed files with 20 additions and 0 deletions
|
@ -398,6 +398,11 @@ function autoupdate_plugin(&$plugin)
|
|||
include_once($maintain_file);
|
||||
|
||||
$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);
|
||||
|
||||
$plugin_maintain = new $classname($plugin['id']);
|
||||
$plugin_maintain->update($plugin['version'], $fs_version, $page['errors']);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue