mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-05-01 05:40:02 +03:00
fixes #2290 add user's language prefix to the PEM link
This commit is contained in:
parent
bd9571cb72
commit
9e9fb327f0
1 changed files with 7 additions and 1 deletions
|
@ -113,10 +113,16 @@ foreach($plugins->fs_plugins as $plugin_id => $fs_plugin)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$url_to_replace = array(
|
||||||
|
'http://piwigo.org/ext',
|
||||||
|
'https://piwigo.org/ext'
|
||||||
|
);
|
||||||
|
$visit_url = str_replace($url_to_replace, PEM_URL, $fs_plugin['uri']);
|
||||||
|
|
||||||
$tpl_plugin = array(
|
$tpl_plugin = array(
|
||||||
'ID' => $plugin_id,
|
'ID' => $plugin_id,
|
||||||
'NAME' => $fs_plugin['name'],
|
'NAME' => $fs_plugin['name'],
|
||||||
'VISIT_URL' => $fs_plugin['uri'],
|
'VISIT_URL' => $visit_url,
|
||||||
'VERSION' => $fs_plugin['version'],
|
'VERSION' => $fs_plugin['version'],
|
||||||
'DESC' => $fs_plugin['description'],
|
'DESC' => $fs_plugin['description'],
|
||||||
'AUTHOR' => $fs_plugin['author'],
|
'AUTHOR' => $fs_plugin['author'],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue