Steve Singer,,, ssinger at lists.slony.info
Wed Nov 9 09:00:11 PST 2011
Update of /home/cvsd/slony1/slony1-www
In directory main.slony.info:/home/community/slony/htdocs

Modified Files:
	index.php 
Log Message:
Fix for Slony bug 197: Documentation Images Don't Work
Don't include the HTML layout header on a PNG file.
CVS[: ----------------------------------------------------------------------


Index: index.php
===================================================================
RCS file: /home/cvsd/slony1/slony1-www/index.php,v
retrieving revision 1.19
retrieving revision 1.20
diff -C 2 -d -r1.19 -r1.20
*** index.php	2 Nov 2011 21:48:24 -0000	1.19
--- index.php	9 Nov 2011 17:00:08 -0000	1.20
***************
*** 42,48 ****
  
  	} else {
!         	echo layout_header();
! 		$title=between("TITLE\n>","</TITLE",$text);
! 	        echo layout_defaultblock($title,$link,$text);
  	}
          break;
--- 42,54 ----
  
  	} else {
! 		if ((substr($file, strlen($file) - 4) == '.png')) {
! 			header('Content-type: application/png');
! 			echo $text;
! 		}
! 		else {
!         		echo layout_header();
! 			$title=between("TITLE\n>","</TITLE",$text);
! 	        	echo layout_defaultblock($title,$link,$text);
! 		}
  	}
          break;



More information about the Slony1-commit mailing list