Status: offline

remy

Forum User
Full Member
Registered: 09/06/03
Posts: 154
After installing the latest downloads plugin a message appears in the error log:

Sat Jan 12 19:22:57 2019 - 46.119.122.127 - E_WARNING(2) - Use of undefined constant ext - assumed 'ext' (this will throw an Error in a future version of PHP) @ .../plugins/downloads/include/functions.php line 415


Corresponding code:

$len = strlen(ext);
$modurl = substr($url, 0, -$len) . $ext;


I do assume it's a typo.
Yes, I'm on php 7.2


Status: offline

Laugh

Site Admin
Admin
Registered: 27/09/05
Posts: 1401
Thanks for the bug report. Added the issue to GitHub: https://github.com/Geeklog-Plugins/downloads/issues/11
One of the Geeklog Core Developers.