Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pathologic committed Mar 9, 2021
1 parent 73982da commit f3a891e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/snippets/phpthumb/snippet.phpthumb.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
$outputFilename = MODX_BASE_PATH . $fNamePref . $fName . $fNameSuf;
if (!file_exists($outputFilename)) {
if (!class_exists('phpthumb')) {
require_once MODX_BASE_PATH . $phpThumbPath . '/phpthumb.class.php';
require_once MODX_BASE_PATH . $phpThumbPath . '/vendor/autoload.php';
}
$phpThumb = new phpthumb();
$phpThumb->config_cache_directory = MODX_BASE_PATH . $defaultCacheFolder;
Expand Down

0 comments on commit f3a891e

Please sign in to comment.