From a989bf86fcaaa9521b53801ad69a82707cb024eb Mon Sep 17 00:00:00 2001 From: krishana7911 Date: Tue, 7 Jan 2025 12:09:36 +0530 Subject: [PATCH] Reverse PR #2098 related changes --- app/main/controllers/template/RTMediaTemplate.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/main/controllers/template/RTMediaTemplate.php b/app/main/controllers/template/RTMediaTemplate.php index 2352bfcb8..05c01a462 100755 --- a/app/main/controllers/template/RTMediaTemplate.php +++ b/app/main/controllers/template/RTMediaTemplate.php @@ -228,15 +228,7 @@ public function add_hidden_fields_in_gallery() { public function check_return_json() { global $rtmedia_query; - // // Handle null gracefully by returning early if $rtmedia_query is null or invalid. - // if ( ! is_object( $rtmedia_query ) || ! isset( $rtmedia_query->format ) ) { - // return; // No action needed if $rtmedia_query is not a valid object with the format property. - // } - error_log(print_r($rtmedia_query->format, true)); - if ( 'json' === $rtmedia_query->format ) { - error_log('HERE'); - error_log(print_r($this->json_output, true)); $this->json_output(); } }