* Wiki: allow German umlauts and other non-ascii chars in page names

Api: Fix encodeId() failed with integers
This commit is contained in:
nathan 2023-04-28 09:39:34 -06:00 committed by ralf
parent e07410d99f
commit bf03f4b198

View File

@ -493,6 +493,10 @@ class Storage
{
return array_map([__CLASS__, __METHOD__], $id);
}
if(is_integer($id))
{
return '' . $id;
}
return substr(json_encode($id, JSON_UNESCAPED_SLASHES), 1, -1);
}