Commit 34ac47d42bd1340427eea584706423c4c7c10c10

Authored by Conrad Vermeulen
1 parent 3e3331e0

KTS-3165

"Remove background task permissions problems by making web server user deal with background tasks"
Fixed. Added some debug logging

Committed By: Conrad Vermeulen
Reviewed By: Kevin Fourie

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8344 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 3 additions and 2 deletions
lib/util/ktutil.inc
... ... @@ -107,19 +107,20 @@ class KTUtil {
107 107 $cacheDir = $config->get('cache/cacheDirectory');
108 108  
109 109 $base_url = @file_get_contents($cacheDir . '/' . KTUtil::SERVER_NAME_FILE);
  110 + global $default;
110 111  
111 112 if (false == $base_url)
112 113 {
113   - global $default;
114 114 $default->log->info("call_page: $path - cannot call script until user logs in for the first time!");
115 115 return;
116 116 }
117 117  
118   -
119 118 $kt_url = KTUtil::kt_url();
120 119  
121 120 $full_url = $kt_url . '/' . $path;
122 121  
  122 + $default->log->debug("call_page: calling $full_url");
  123 +
123 124 $ch = curl_init($full_url);
124 125 curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, false);
125 126 curl_setopt($ch,CURLOPT_SSL_VERIFYHOST, false);
... ...