From c827cefac10ae4163ddf7ebc44a7919c6aff02da Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Fri, 02 Jul 2010 07:26:05 -0400
Subject: [PATCH] Removed some debug output from the ajax alert windows if a ajax request fails.

---
 server/plugins-available/apache2_plugin.inc.php |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/server/plugins-available/apache2_plugin.inc.php b/server/plugins-available/apache2_plugin.inc.php
index 0a77038..c0fd822 100644
--- a/server/plugins-available/apache2_plugin.inc.php
+++ b/server/plugins-available/apache2_plugin.inc.php
@@ -1211,16 +1211,18 @@
 	private function awstats_update ($data,$web_config) {
 		global $app;
 		
+		$awstats_conf_dir = $web_config['awstats_conf_dir'];
+		
 		if(!@is_file($awstats_conf_dir."/awstats.".$data["new"]["domain"].".conf") || ($data["old"]["domain"] != '' && $data["new"]["domain"] != $data["old"]["domain"])) {
 			if ( @is_file($awstats_conf_dir."/awstats.".$data["old"]["domain"].".conf") ) {
 				unlink($awstats_conf_dir."/awstats.".$data["old"]["domain"].".conf");
 			}
 			
 			$content = '';
-			$content .= "Include '".$awstats_conf_dir."/awstats.conf'\n";
-			$content .= "LogFile='/var/log/ispconfig/httpd/".$data["new"]["domain"]."/access.log'\n";
-			$content .= "SiteDomain='".$data["new"]["domain"]."'\n";
-			$content .= "HostAliases='www.".$data["new"]["domain"]."  localhost 127.0.0.1'\n";
+			$content .= "Include \"".$awstats_conf_dir."/awstats.conf\"\n";
+			$content .= "LogFile=\"/var/log/ispconfig/httpd/".$data["new"]["domain"]."/access.log\"\n";
+			$content .= "SiteDomain=\"".$data["new"]["domain"]."\"\n";
+			$content .= "HostAliases=\"www.".$data["new"]["domain"]."  localhost 127.0.0.1\"\n";
 			
 			file_put_contents($awstats_conf_dir.'/awstats.'.$data["new"]["domain"].'.conf',$content);
 			$app->log("Created awstats config file: ".$awstats_conf_dir.'/awstats.'.$data["new"]["domain"].'.conf',LOGLEVEL_DEBUG);

--
Gitblit v1.9.1