mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-10-31 06:02:00 +01:00
less greedy regexp selector, to detect piwigo-videojs settings page
This commit is contained in:
1 parent
6005901356
commit
3130c08c75
1 file changed
+1
-1
@@ -93,7 +93,7 @@ foreach ($plugin_menu_links_deprec as $value)
|
||||
{
|
||||
if (preg_match('/^admin\.php\?page=plugin-(.*)$/', $value["URL"], $matches)) {
|
||||
$settings_url_for_plugin_deprec[$matches[1]] = $value["URL"];
|
||||
} elseif (preg_match('/^.*section=(.*)[\/&%].*$/', $value["URL"], $matches)) {
|
||||
} elseif (preg_match('/^.*section=(.*?)[\/&%].*$/', $value["URL"], $matches)) {
|
||||
$settings_url_for_plugin_deprec[$matches[1]] = $value["URL"];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user