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:
@@ -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';
|
||||
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user