mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
less greedy regexp selector, to detect piwigo-videojs settings page
This commit is contained in:
@@ -93,7 +93,7 @@ foreach ($plugin_menu_links_deprec as $value)
|
|||||||
{
|
{
|
||||||
if (preg_match('/^admin\.php\?page=plugin-(.*)$/', $value["URL"], $matches)) {
|
if (preg_match('/^admin\.php\?page=plugin-(.*)$/', $value["URL"], $matches)) {
|
||||||
$settings_url_for_plugin_deprec[$matches[1]] = $value["URL"];
|
$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"];
|
$settings_url_for_plugin_deprec[$matches[1]] = $value["URL"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user