What I had earlier thought was Python-like code was actually PHP using syntax effective with version 5.4+.
Piwigo itself requires only PHP 5.0 or higher. So it looks like issue #107 is that the Piwigo server may be running a lower PHP version than 5.4. My host, for example, runs PHP 5.2; don't ask why. The unattractive syntax in this commit should work with any PHP 5.0+.
What I had earlier thought was Python-like code was actually PHP using syntax effective with version 5.4+.
Piwigo itself requires only PHP 5.0 or higher. So it looks like issue #107 is that the Piwigo server may be running a lower PHP version than 5.4. My host, for example, runs PHP 5.2; don't ask why. The unattractive syntax in this commit should work with any PHP 5.0+.