diff --git a/inc/example.config.inc.php b/inc/example.config.inc.php index 010c49f..122e8ba 100644 --- a/inc/example.config.inc.php +++ b/inc/example.config.inc.php @@ -86,4 +86,4 @@ define('SHOW_ERRORS', false); //define('BACKBLAZE_BUCKET_NAME', ''); //define('BACKBLAZE_AUTODOWNLOAD', true); //if true, will download images from backblaze if not found local //define('BACKBLAZE_AUTOUPLOAD', true); //if true, will upload images to backblaze when they are uploaded to pictshare -//define('BACKBLAZE_AUTOUPDELETE', true); //if true, will delete images from backblaze if they are deleted from pictshare +//define('BACKBLAZE_AUTODELETE', true); //if true, will delete images from backblaze if they are deleted from pictshare diff --git a/models/pictsharemodel.php b/models/pictsharemodel.php index a5e7f77..7aaf67f 100644 --- a/models/pictsharemodel.php +++ b/models/pictsharemodel.php @@ -212,7 +212,7 @@ class PictshareModel extends Model rmdir($base_path); //delete from backblaze if configured - if(BACKBLAZE===true && BACKBLAZE_AUTOUPDELETE===true) + if(BACKBLAZE===true && BACKBLAZE_AUTODELETE===true) { $b = new Backblaze(); $b->deleteFile($hash);