We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16ac036 commit 6a55f70Copy full SHA for 6a55f70
application/helpers/reports.php
@@ -518,13 +518,13 @@ public static function save_media($post, $incident)
518
// Okay, now we have these three different files on the server, now check to see
519
// if we should be dropping them on the CDN
520
521
+ $local_directory = rtrim($upload_dir, '/').'/';
522
if ($media_medium AND $media_thumb AND Kohana::config("cdn.cdn_store_dynamic_content"))
523
{
524
$cdn_media_medium = cdn::upload($media_medium);
525
$cdn_media_thumb = cdn::upload($media_thumb);
526
527
// We no longer need the files we created on the server. Remove them.
- $local_directory = rtrim($upload_dir, '/').'/';
528
529
if (file_exists($local_directory.$media_medium))
530
0 commit comments