mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-01 04:49:36 +00:00
Revert "Refactor ID extraction logic in BuerklinProvider"
This reverts commit 5f65176636.
This commit is contained in:
parent
22939d9f04
commit
66c2787e3c
1 changed files with 3 additions and 6 deletions
|
|
@ -661,13 +661,10 @@ class BuerklinProvider implements BatchInfoProviderInterface, URLHandlerInfoProv
|
|||
if (strpos($path, '/p/') === false) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Reject "/.../p" and "/.../p/" (no actual ID)
|
||||
if ($id === 'p' || $id === '') {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $id;
|
||||
$id = basename(rtrim($path, '/'));
|
||||
|
||||
return $id !== '' ? $id : null;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue