From 9e9fb327f08ae099fa3d11053085b57342520850 Mon Sep 17 00:00:00 2001 From: Linty Date: Thu, 5 Dec 2024 15:04:50 +0100 Subject: [PATCH] fixes #2290 add user's language prefix to the PEM link --- admin/plugins_installed.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/admin/plugins_installed.php b/admin/plugins_installed.php index 4a1f294ad..d5c7cf216 100644 --- a/admin/plugins_installed.php +++ b/admin/plugins_installed.php @@ -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( 'ID' => $plugin_id, 'NAME' => $fs_plugin['name'], - 'VISIT_URL' => $fs_plugin['uri'], + 'VISIT_URL' => $visit_url, 'VERSION' => $fs_plugin['version'], 'DESC' => $fs_plugin['description'], 'AUTHOR' => $fs_plugin['author'],