com web/shared: This attribute is redundant: templates/footer.inc templates/header.inc

From: Date: Wed, 19 Mar 2014 20:09:45 +0000
Subject: com web/shared: This attribute is redundant: templates/footer.inc templates/header.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-18539@lists.php.net to get a copy of this message
Commit: 3fc95823919e7d50d8bd1aa1fc0e88335ca5cb51 Author: Sobak <msobaczewski@gmail.com> Wed, 19 Mar 2014 21:09:45 +0100 Parents: afc0ad86884af49427303d063c8edc33bbaa0a4b Branches: master Link: http://git.php.net/?p=web/shared.git;a=commitdiff;h=3fc95823919e7d50d8bd1aa1fc0e88335ca5cb51 Log: This attribute is redundant Changed paths: M templates/footer.inc M templates/header.inc Diff: diff --git a/templates/footer.inc b/templates/footer.inc index 2c1aa89..effad64 100644 --- a/templates/footer.inc +++ b/templates/footer..inc @@ -34,9 +34,9 @@ $ROOT = substr($_SERVER["SERVER_NAME"], -8) == ".php.net" ? "//shared.php.net" : <script src="<?php echo $ROOT?>/js/common.js"></script> <?php foreach($JS as $script) :?> <?php if (strncmp($script, "//", 2) == 0): ?> - <script type="text/javascript" src="<?php echo $script?>"></script> + <script src="<?php echo $script?>"></script> <?php else: ?> - <script type="text/javascript" src="<?php echo $ROOT ?><?php echo $script?>"></script> + <script src="<?php echo $ROOT ?><?php echo $script?>"></script> <?php endif ?> <?php endforeach ?> </body> diff --git a/templates/header..inc b/templates/header.inc index 6929939..2ab72a1 100644 --- a/templates/header.inc +++ b/templates/header.inc @@ -34,13 +34,13 @@ $ROOT = substr($_SERVER["SERVER_NAME"], -8) == ".php.net" ? "//shared.php.net" : <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>PHP: <?=$TITLE ?></title> - <link type="text/css" media="all" rel="stylesheet" href="<?php echo $ROOT?>/styles/defaults.css"> + <link media="all" rel="stylesheet" href="<?php echo $ROOT?>/styles/defaults.css"> <?php foreach($CSS as $style): ?> - <link type="text/css" media="all" rel="stylesheet" href="<?php echo $ROOT?><?php echo $style?>"> + <link media="all" rel="stylesheet" href="<?php echo $ROOT?><?php echo $style?>"> <?php endforeach ?> - <link href="//fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,400italic,600italic|Source+Code+Pro&amp;subset=latin,latin-ext" rel="stylesheet" type="text/css"> + <link href="//fonts.googleapis..com/css?family=Source+Sans+Pro:400,600,400italic,600italic|Source+Code+Pro&amp;subset=latin,latin-ext" rel="stylesheet"> <link rel="shortcut icon" href="//php.net/favicon.ico"> <!--[if lt IE 9]> <script src="//shared.php.net/js/html5shiv.js"></script>

« previous php.webmaster (#18539) next »