[evolvis-commits] r18418: small-fixes pending merges:↵ Thorsten Glaser 2012-05-21 do not 'require' 404.php, it’s not suitable for doing that↵ Thorsten Glaser 2012-05-21 empty content pages suck, give this one something to say

mirabilos at evolvis.org mirabilos at evolvis.org
Mon May 21 11:53:28 CEST 2012


Author: mirabilos
Date: 2012-05-21 11:53:28 +0200 (Mon, 21 May 2012)
New Revision: 18418

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/www/404.php
   trunk/gforge_base/evolvisforge-5.1/src/www/frs/download.php
Log:
small-fixes pending merges:
  Thorsten Glaser 2012-05-21 do not 'require' 404.php, it’s not suitable for doing that
    Thorsten Glaser 2012-05-21 empty content pages suck, give this one something to say

Modified: trunk/gforge_base/evolvisforge-5.1/src/www/404.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/404.php	2012-05-16 14:21:29 UTC (rev 18417)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/404.php	2012-05-21 09:53:28 UTC (rev 18418)
@@ -23,7 +23,12 @@
 require_once('env.inc.php');
 require_once $gfcommon.'include/pre.php';
 
-$HTML->header(array('title'=>_('Requested Page not Found (Error 404)')));
+$text = _('Requested Page not Found (Error 404)');
+
+$HTML->header(array(
+	'title' => $text,
+	'h1' => $text,
+    ));
 $HTML->footer(array());
 
 ?>

Modified: trunk/gforge_base/evolvisforge-5.1/src/www/frs/download.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/frs/download.php	2012-05-16 14:21:29 UTC (rev 18417)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/frs/download.php	2012-05-21 09:53:28 UTC (rev 18418)
@@ -41,9 +41,15 @@
  */
 
 function send_404 () {
-	global $gfwww;
+	global $HTML;
+
 	header("HTTP/1.0 404 Not Found");
-	require_once $gfwww.'404.php';
+	$text = _('Requested Page not Found (Error 404)');
+	$HTML->header(array(
+		'title' => $text,
+		'h1' => $text,
+	    ));
+	$HTML->footer(array());
 	exit;
 }
 



More information about the evolvis-commits mailing list