1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Prevent multiple includes of ThumbLib

Fixes this error:

```
Constant THUMBLIB_BASE_PATH already defined
 /e107/e107_handlers/phpthumb/ThumbLib.inc.php:31
 /e107/e107_handlers/media_class.php:1943
 /e107/e107_handlers/mail.php:1269
 /e107/e107_handlers/mail.php:654
 /e107/e107_handlers/mail.php:976
 /e107/e107_tests/tests/unit/e107EmailTest.php:61
```
This commit is contained in:
Nick Liu
2020-08-11 19:07:41 -05:00
parent 0c8668ee51
commit ef819f6c30
2 changed files with 2 additions and 2 deletions

View File

@@ -98,7 +98,7 @@ if(vartrue($_GET['action']) == 'nav' && e_AJAX_REQUEST) //XXX Doesn't work corre
}
require(e_HANDLER.'phpthumb/ThumbLib.inc.php'); // For resizing on import.
require_once(e_HANDLER.'phpthumb/ThumbLib.inc.php'); // For resizing on import.
$e_sub_cat = 'image';

View File

@@ -1940,7 +1940,7 @@ class e_media
}
@require(e_HANDLER.'phpthumb/ThumbLib.inc.php');
require_once(e_HANDLER.'phpthumb/ThumbLib.inc.php');
try
{
$thumb = PhpThumbFactory::create($src);