Closed gadgetto closed 3 years ago
What's your php version? Could be relevant to an issue like this.
That's true Mark! Updated my issue.
Thanks!
A link must be passed to the function (it's true for all version of PHP)
array_pop ( array &$array ) : mixed
This code is weird
// modmediasource.class.php
$ext = strtolower(array_pop(explode(DIRECTORY_SEPARATOR, trim($file, DIRECTORY_SEPARATOR))));
It can be replaced by pathinfo().
A link must be passed to the function (it's true for all version of PHP)
array_pop ( array &$array ) : mixed
This code is weird
// modmediasource.class.php $ext = strtolower(array_pop(explode(DIRECTORY_SEPARATOR, trim($file, DIRECTORY_SEPARATOR))));
It can be replaced by pathinfo().
Feel free to submit a PR 😄
Would do if I got enough time
Summary
The MODX error log is filled with these warnings:
Step to reproduce
Set log-level to 3 and open MODX error log.
Environment
MAMP Pro local site with HTTPS enabled MODX version: MODX 3 alpha PHP Version: 7.1.12