SOURCES: php-pear-PhpDocumentor-smarty.patch (NEW) - use system sm...

glen glen at pld-linux.org
Sun Sep 18 12:00:15 CEST 2005


Author: glen                         Date: Sun Sep 18 10:00:15 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- use system smarty
- set compile_dir to world writable dir

---- Files affected:
SOURCES:
   php-pear-PhpDocumentor-smarty.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/php-pear-PhpDocumentor-smarty.patch
diff -u /dev/null SOURCES/php-pear-PhpDocumentor-smarty.patch:1.1
--- /dev/null	Sun Sep 18 12:00:15 2005
+++ SOURCES/php-pear-PhpDocumentor-smarty.patch	Sun Sep 18 12:00:10 2005
@@ -0,0 +1,22 @@
+--- ./usr/share/pear/PhpDocumentor/phpDocumentor/Converter.inc	2005-09-18 12:49:06.000000000 +0300
++++ /usr/share/pear/PhpDocumentor/phpDocumentor/Converter.inc	2005-09-18 12:51:25.000000000 +0300
+@@ -27,7 +27,7 @@
+ /**
+  * Smarty template files
+  */
+-include_once("phpDocumentor/Smarty-2.6.0/libs/Smarty.class.php");
++include_once("Smarty/Smarty.class.php");
+ /**
+  * Base class for all output converters.
+  *
+--- ./usr/share/pear/PhpDocumentor/phpDocumentor/Converter.inc	2005-09-18 12:53:14.000000000 +0300
++++ /usr/share/pear/PhpDocumentor/phpDocumentor/Converter.inc	2005-09-18 12:57:03.000000000 +0300
+@@ -4824,7 +4824,7 @@
+         $templ = new Smarty;
+         $templ->use_sub_dirs = false;
+         $templ->template_dir = realpath($this->smarty_dir . PATH_DELIMITER . 'templates');
+-        $templ->compile_dir = realpath($this->smarty_dir . PATH_DELIMITER . 'templates_c');
++        $templ->compile_dir = "/var/tmp"; # FIXME: is this secure?
+         $templ->config_dir = realpath($this->smarty_dir . PATH_DELIMITER . 'configs');
+         $templ->assign("date",date("r",time()));
+         $templ->assign("maintitle",$this->title);
================================================================



More information about the pld-cvs-commit mailing list