From 34ac47d42bd1340427eea584706423c4c7c10c10 Mon Sep 17 00:00:00 2001 From: Conrad Vermeulen Date: Thu, 3 Apr 2008 11:40:18 +0000 Subject: [PATCH] KTS-3165 "Remove background task permissions problems by making web server user deal with background tasks" Fixed. Added some debug logging --- lib/util/ktutil.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/util/ktutil.inc b/lib/util/ktutil.inc index 0e147e4..bb372ef 100644 --- a/lib/util/ktutil.inc +++ b/lib/util/ktutil.inc @@ -107,19 +107,20 @@ class KTUtil { $cacheDir = $config->get('cache/cacheDirectory'); $base_url = @file_get_contents($cacheDir . '/' . KTUtil::SERVER_NAME_FILE); + global $default; if (false == $base_url) { - global $default; $default->log->info("call_page: $path - cannot call script until user logs in for the first time!"); return; } - $kt_url = KTUtil::kt_url(); $full_url = $kt_url . '/' . $path; + $default->log->debug("call_page: calling $full_url"); + $ch = curl_init($full_url); curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch,CURLOPT_SSL_VERIFYHOST, false); -- libgit2 0.21.4