SOURCES: cacti-addons-add_template.patch - undos
glen
glen at pld-linux.org
Sun Oct 5 13:50:22 CEST 2008
Author: glen Date: Sun Oct 5 11:50:22 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- undos
---- Files affected:
SOURCES:
cacti-addons-add_template.patch (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SOURCES/cacti-addons-add_template.patch
diff -u SOURCES/cacti-addons-add_template.patch:1.1 SOURCES/cacti-addons-add_template.patch:1.2
--- SOURCES/cacti-addons-add_template.patch:1.1 Tue Dec 25 05:52:41 2007
+++ SOURCES/cacti-addons-add_template.patch Sun Oct 5 13:50:16 2008
@@ -1,23 +1,23 @@
--- cacti-addons-0.1/cacti/add_template.php.orig 2005-08-09 12:28:48.000000000 +0000
+++ cacti-addons-0.1/cacti/add_template.php 2007-12-25 04:37:28.000000000 +0000
@@ -7,9 +7,8 @@
- | Version : 0.1 8 Aug 2005 |
- +---------------------------------------------------------------------------+
- */
--
--include_once("./include/config.php");
--include_once("./lib/import.php");
+ | Version : 0.1 8 Aug 2005 |
+ +---------------------------------------------------------------------------+
+ */
+-
+-include_once("./include/config.php");
+-include_once("./lib/import.php");
+include_once("/usr/share/cacti/include/config.php");
+include_once("/usr/share/cacti/lib/import.php");
-
- // check if we have good number of argument
- if ($argc != 2 || in_array($argv[1], array('--help', '-help', '-h', '-?')))
+
+ // check if we have good number of argument
+ if ($argc != 2 || in_array($argv[1], array('--help', '-help', '-h', '-?')))
@@ -30,7 +29,7 @@
- $xml_data = fread($fp,filesize($xml_file));
-
- // import data into cacti. $info_array will contain debugging info.
--$info_array = import_xml_data($xml_data);
+ $xml_data = fread($fp,filesize($xml_file));
+
+ // import data into cacti. $info_array will contain debugging info.
+-$info_array = import_xml_data($xml_data);
+$info_array = import_xml_data($xml_data,false);
-
- return 0;
- ?>
+
+ return 0;
+ ?>
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/cacti-addons-add_template.patch?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list