use Friendica\Core\Renderer;
use Friendica\Core\System;
use Friendica\Database\DBA;
-use Friendica\Object\Image;
+use Friendica\Util\Images;
use Friendica\Util\Strings;
/**
}
// Needed to match the correct template in a module that uses a different theme than the user/site/default
- $theme = Strings::sanitizeFilePathItem(defaults($_GET, 'theme', null));
+ $theme = Strings::sanitizeFilePathItem($_GET['theme'] ?? null);
if ($theme && is_file("view/theme/$theme/config.php")) {
$a->setCurrentTheme($theme);
}
function _map_files1($rr)
{
$a = \get_app();
- $types = Image::supportedTypes();
+ $types = Images::supportedTypes();
$ext = $types[$rr['type']];
$filename_e = $rr['filename'];