tags 341417 + patch
thanks

Attached a tested and working patch for the staticcopy script. It also
moves the scripts back to /usr/share/bamboo/scripts, where they used to
be.

-- 
bye,
pabs

http://wiki.debian.org/PaulWise
diff -u bamboo-1.3/debian/bamboo.install bamboo-1.3/debian/bamboo.install
--- bamboo-1.3/debian/bamboo.install
+++ bamboo-1.3/debian/bamboo.install
@@ -9 +9 @@
-scripts /usr/share/doc/bamboo
+scripts /usr/share/bamboo
diff -u bamboo-1.3/debian/changelog bamboo-1.3/debian/changelog
--- bamboo-1.3/debian/changelog
+++ bamboo-1.3/debian/changelog
@@ -1,3 +1,9 @@
+bamboo (1.3-2) unstable; urgency=low
+
+  * Fix staticcopy script using a patch from Paul Wise
+
+ -- Micah Anderson <[EMAIL PROTECTED]>  Sun,  4 Dec 2005 23:27:38 +0800
+
 bamboo (1.3-1) unstable; urgency=low
 
   * Upgraded to new upstream 1.3 release (Closes: #312939)
only in patch2:
unchanged:
--- bamboo-1.3.orig/scripts/staticcopy
+++ bamboo-1.3/scripts/staticcopy
@@ -26,8 +26,9 @@
   
 *************************************************************/
 
-$base = dirname(dirname(__FILE__));
 
+$base = dirname(dirname(__FILE__));
+chdir($base);
 require_once("$base/debug.php");
 require_once("$base/Lang.php");
 require_once("$base/Page.php");
@@ -134,9 +135,8 @@
 	mkdir("$path");
 	foreach($langs as $lang) {
 		Lang::set($lang);
-		$curpage->content = null; // clear out the content;
 		ob_start();
-			$renderer->renderPage($curpage);
+			$renderer->renderPage($curpage,$curpage->getDisplay());
 			$data = &ob_get_contents();
 		ob_end_clean();
 		

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to