1 --- /poller.php~ 2008-10-05 16:54:15.000000000 +0300
2 +++ /poller.php 2008-10-05 16:57:05.946911539 +0300
3 @@ -320,7 +320,8 @@ while ($poller_runs_completed < $poller_
6 /* update web paths for the poller */
7 - db_execute("REPLACE INTO settings (name, value) VALUES ('path_webroot','" . addslashes(($config['cacti_server_os'] == 'win32') ? strtr(strtolower(substr(dirname(__FILE__), 0, 1)) . substr(dirname(__FILE__), 1),"\\", '/') : dirname(__FILE__)) . "')");
8 + $path_webroot = $config['base_path'];
9 + db_execute("REPLACE INTO settings (name,value) VALUES ('path_webroot','" . addslashes($path_webroot) . "')");
11 /* obtain some defaults from the database */
12 $poller_type = read_config_option('poller_type');