Update of /cvsroot/fink/web
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv21302

Modified Files:
        header.inc 
Log Message:
More fixes...


Index: header.inc
===================================================================
RCS file: /cvsroot/fink/web/header.inc,v
retrieving revision 1.121
retrieving revision 1.122
diff -u -d -r1.121 -r1.122
--- header.inc  5 Sep 2010 16:11:54 -0000       1.121
+++ header.inc  7 Sep 2010 19:00:14 -0000       1.122
@@ -144,6 +144,8 @@
 
 // get author and change date from CVS vars
 //  kill dollar-envelope
+if (!isset($cvs_author)) $cvs_author = "";
+if (!isset($cvs_date)) $cvs_date = 0;
 if (substr($cvs_author,0,1) == "$")
   $cvs_author = rtrim(substr($cvs_author, 1, -1));
 if (substr($cvs_date,0,1) == "$")
@@ -158,7 +160,8 @@
   $date = gmmktime($r[4], $r[5], $r[6], $r[2], $r[3], $r[1]);
   define ("FILEMDATE", gmmktime($r[4], $r[5], $r[6], $r[2], $r[3], $r[1]));
 } else {
-  $date = filemtime($PATH_TRANSLATED);
+  if (!isset($_SERVER['PATH_TRANSLATED'])) $_SERVER['PATH_TRANSLATED'] = "";
+  $date = filemtime($_SERVER['PATH_TRANSLATED']);
 }
 // converts xml style tag to html 4.01 transitional (ad hoc)
 if (!isset($metatags)) global $metatags;


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to