cvs: phpweb /include layout.inc
| From: | Gabor Hojtsy | Date: | Wed, 06 Sep 2006 16:54:28 +0000 |
| Subject: | cvs: phpweb /include layout.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-32357@lists.php.net to get a copy of this message | ||
goba Wed Sep 6 16:54:28 2006 UTC
Modified files:
/phpweb/include layout.inc
Log:
forget the onload, the CSS IE fix works
http://cvs.php.net/viewvc.cgi/phpweb/include/layout.inc?r1=1.235&r2=1.236&diff_format=u
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.235 phpweb/include/layout.inc:1.236
--- phpweb/include/layout.inc:1.235 Wed Sep 6 13:56:50 2006
+++ phpweb/include/layout.inc Wed Sep 6 16:54:28 2006
@@ -1,5 +1,5 @@
<?php
-/* $Id: layout.inc,v 1.235 2006/09/06 13:56:50 goba Exp $ */
+/* $Id: layout.inc,v 1.236 2006/09/06 16:54:28 goba Exp $ */
// Set the static content root differently on php.net
$_SERVER['STATIC_ROOT'] = ($MYSITE == 'http://www.php.net/') ?
@@ -86,10 +86,8 @@
$meta .= "\n <meta name=\"robots\" content=\"noindex\"
/>";
}
- // Decide on onload event handler
- if (!isset($config['onload'])) {
- $config['onload'] = "runOnLoad();";
- }
+ // Set onload handler if required
+ $onload = (isset($config['onload']) ? 'onload="' .
$config['onload'] . '"' : '');
// Explicit language setting means that we should put that into the form
if (isset($EXPL_LANG)) {
@@ -123,7 +121,7 @@
<link rel="shortcut icon"
href="{$_SERVER['STATIC_ROOT']}/favicon.ico" />
<script type="text/javascript"
src="{$_SERVER['STATIC_ROOT']}/userprefs.js"></script>$base$meta
</head>
-<body onload="{$config['onload']}">
+<body{$onload}">
<div id="headnav">
<a href="/"><img
src="{$_SERVER['STATIC_ROOT']}/images/php.gif"