1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 18:14:26 +02:00

Improved image testing. File class mime-detection improvements. Fix for use of e107_ini_set() which is only declared during installation. gSitemap typo fix.

This commit is contained in:
Cameron
2020-12-10 09:40:34 -08:00
parent ccede2f404
commit b0f28633bb
7 changed files with 2479 additions and 2136 deletions

View File

@@ -997,9 +997,10 @@ while($row = $sql->fetch())
<img class="img-responsive img-fluid" src="thumb.php?src=e_PLUGIN%2Fgallery%2Fimages%2Fbutterfly.jpg&amp;w=80&amp;h=80" alt="butterfly.jpg" width="80" height="80" />
</picture>';
$tempDir = str_replace(['C:','\\'],['','/'], sys_get_temp_dir()).'/'; // FIXME
// $tempDir = str_replace(['C:','\\'],['','/'], sys_get_temp_dir()).'/'; // FIXME
$result6 = preg_replace('/"([^"]*)thumb.php/','"thumb.php', $result6);
$result6 = str_replace($tempDir, '', $result6);
// $result6 = str_replace($tempDir, '', $result6);
$this->assertSame($expected,$result6);
$this->tp->setConvertToWebP(false);