diff --git a/php/classes/controllers/class-frontend-controller.php b/php/classes/controllers/class-frontend-controller.php index a0678d44..4ea06b99 100644 --- a/php/classes/controllers/class-frontend-controller.php +++ b/php/classes/controllers/class-frontend-controller.php @@ -986,7 +986,7 @@ public function download_file() { } } - if ( 'test-nginx' !== $_GET['ref'] ) { + if ( 'test-nginx' !== $referrer ) { // Allow other actions - functions hooked on here must not output any data do_action( 'ssp_file_download', $file, $episode, $referrer ); }