Skip to content

Commit 6a55f70

Browse files
committed
make local_directory a global variable to allow saving of external video links, fixes #1350
1 parent 16ac036 commit 6a55f70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/helpers/reports.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,13 +518,13 @@ public static function save_media($post, $incident)
518518
// Okay, now we have these three different files on the server, now check to see
519519
// if we should be dropping them on the CDN
520520

521+
$local_directory = rtrim($upload_dir, '/').'/';
521522
if ($media_medium AND $media_thumb AND Kohana::config("cdn.cdn_store_dynamic_content"))
522523
{
523524
$cdn_media_medium = cdn::upload($media_medium);
524525
$cdn_media_thumb = cdn::upload($media_thumb);
525526

526527
// We no longer need the files we created on the server. Remove them.
527-
$local_directory = rtrim($upload_dir, '/').'/';
528528

529529
if (file_exists($local_directory.$media_medium))
530530
{

0 commit comments

Comments
 (0)