Thanks a lot erAck for the report :-)
On Piwigo.com, I did this:
function ws_getVersion($params, &$service)
{
// specific for digiKam, which considers 2.10 is inferior to 2.4 :-/
if ('/accounts/b/i/s/bisgbkvdoa' == $_SERVER['ACCOUNT_PATH'] and isset($_SERVER['HTTP_USER_AGENT']) and 'Mozilla/5.0' == $_SERVER['HTTP_USER_AGENT'])
{
return '2.9.6';
}
return PHPWG_VERSION;
}
To make it very specific to a given account.
Unfortunately the user-agent is a basic "Mozilla/5.0" instead of a more specific user agent, for example :
* Piwigo iOS : piwigo/2.4.5 (iPhone; iOS 13.2.2; Scale/2.00)
* Piwigo Android : Piwigo-Android 1.0.2
* Wordpress : WordPress/5.2.4
* ReGalAndroid : ReGalAndroid Version : 1.2.0
* Lightroom : Lightroom%20Classic/9.0 CFNetwork/1120 Darwin/19.0.0 (x86_64)
If we had a "digiKam 6.3.9", it would be much simpler to customize the response.