Skip to content

Commit 113c862

Browse files
committed
Also remove XHTML from .inc files
1 parent 5bfef25 commit 113c862

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

include/header.inc

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ if (!isset($config["languages"])) {
7171
<?php endforeach ?>
7272

7373
<!--[if lte IE 7]>
74-
<link rel="stylesheet" type="text/css" href="<?php echo $MYSITE ?>styles/workarounds.ie7.css" media="screen" />
74+
<link rel="stylesheet" type="text/css" href="<?php echo $MYSITE ?>styles/workarounds.ie7.css" media="screen">
7575
<![endif]-->
7676

7777
<!--[if lte IE 8]>
@@ -81,7 +81,7 @@ if (!isset($config["languages"])) {
8181
<![endif]-->
8282

8383
<!--[if lte IE 9]>
84-
<link rel="stylesheet" type="text/css" href="<?php echo $MYSITE ?>styles/workarounds.ie9.css" media="screen" />
84+
<link rel="stylesheet" type="text/css" href="<?php echo $MYSITE ?>styles/workarounds.ie9.css" media="screen">
8585
<![endif]-->
8686

8787
<!--[if IE]>

include/layout.inc

+8-8
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function highlight_php($code, $return = FALSE)
2929
$highlighted = '<div class="phpcode">' . str_replace(
3030
array(
3131
'&nbsp;',
32-
'<br />',
32+
'<br>',
3333
'<font color="', // for PHP 4
3434
'<span style="color: ', // from PHP 5.0.0RC1
3535
'</font>',
@@ -39,7 +39,7 @@ function highlight_php($code, $return = FALSE)
3939
),
4040
array(
4141
' ',
42-
"<br />\n",
42+
"<br>\n",
4343
'<span class="',
4444
'<span class="',
4545
'</span>',
@@ -72,12 +72,12 @@ function resize_image($img, $width = 1, $height = 1)
7272
// Return image with new width and height added
7373
return preg_replace(
7474
'!/?>$!',
75-
sprintf(' height="%s" width="%s" />', $height, $width),
75+
sprintf(' height="%s" width="%s">', $height, $width),
7676
$str
7777
);
7878
}
7979

80-
// Return an <img /> tag for a given image file available on the server
80+
// Return an <img> tag for a given image file available on the server
8181
function make_image($file, $alt = FALSE, $align = FALSE, $extras = FALSE,
8282
$dir = '/images', $border = 0, $addsize = TRUE)
8383
{
@@ -102,7 +102,7 @@ function make_image($file, $alt = FALSE, $align = FALSE, $extras = FALSE,
102102
}
103103

104104
// Return with image built up
105-
return sprintf('<img src="%s/%s" alt="%s"%s%s%s />',
105+
return sprintf('<img src="%s/%s" alt="%s"%s%s%s>',
106106
$webdir,
107107
$file,
108108
($alt ? $alt : ''),
@@ -112,7 +112,7 @@ function make_image($file, $alt = FALSE, $align = FALSE, $extras = FALSE,
112112
);
113113
}
114114

115-
// Print an <img /> tag out for a given file
115+
// Print an <img> tag out for a given file
116116
function print_image($file, $alt = FALSE, $align = FALSE, $extras = FALSE,
117117
$dir = '/images', $border = 0)
118118
{
@@ -379,10 +379,10 @@ function display_event($event, $include_date = 1)
379379
<?php
380380

381381
// Print long description
382-
echo preg_replace("/\r?\n\r?\n/", "<br /><br />", trim(htmlentities($event['ldesc'],ENT_QUOTES | ENT_IGNORE, 'UTF-8')));
382+
echo preg_replace("/\r?\n\r?\n/", "<br><br>", trim(htmlentities($event['ldesc'],ENT_QUOTES | ENT_IGNORE, 'UTF-8')));
383383
// If we have an URL, print it out
384384
if ($event['url']) {
385-
echo '<br /><br /><b>URL:</b> ',
385+
echo '<br><br><b>URL:</b> ',
386386
'<a href="', htmlentities($event['url'], ENT_QUOTES | ENT_IGNORE, 'UTF-8'), '">',
387387
htmlentities($event['url'], ENT_QUOTES | ENT_IGNORE, 'UTF-8'), '</a>';
388388
}

include/mozsearch.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
browserResultType="result"
1616
resultListStart="<!-- result list start -->"
1717
resultListEnd="<!-- result list end -->"
18-
resultItemEnd="<br />"
18+
resultItemEnd="<br>"
1919
>
2020

2121
<browser

include/releases.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3543,7 +3543,7 @@ $OLDRELEASES = array (
35433543
'name' => 'PHP 4.4.7 zip package',
35443544
'md5' => '065e867fa3cfa75cba8271dde9b10cee',
35453545
'date' => '04 May 2007',
3546-
'note' => 'This package was updated due to faulty Apache2 module shipped with the orginal.<br /> (CGI binary plus server API versions for Apache, Apache2 (experimental), ISAPI, NSAPI, Servlet and Pi3Web. MySQL support built-in, many extensions included, packaged as zip)<br />',
3546+
'note' => 'This package was updated due to faulty Apache2 module shipped with the orginal.<br> (CGI binary plus server API versions for Apache, Apache2 (experimental), ISAPI, NSAPI, Servlet and Pi3Web. MySQL support built-in, many extensions included, packaged as zip)<br>',
35473547
),
35483548
),
35493549
'date' => '03 May 2007',

include/shared-manual.inc

+4-4
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ function manual_notes($notes) {
156156
'&amp;redirect=' . $_SERVER['BASE_HREF'];
157157
$addnotesnippet = make_link(
158158
$addnotelink,
159-
"<img src='/images/[email protected]' alt='add a note' width='12' height='12' /> <small>add a note</small>"
159+
"<img src='/images/[email protected]' alt='add a note' width='12' height='12'> <small>add a note</small>"
160160
);
161161

162162
$num_notes = count($notes);
@@ -280,21 +280,21 @@ VOTEDIV;
280280

281281
make_popup_link(
282282
'https://master.php.net/manage/user-notes.php?action=edit+' . $id,
283-
'<img src="/images/[email protected]" height="12" width="12" alt="edit note" />',
283+
'<img src="/images/[email protected]" height="12" width="12" alt="edit note">',
284284
'admin',
285285
'scrollbars=yes,width=650,height=400'
286286
) . "\n " .
287287

288288
make_popup_link(
289289
'https://master.php.net/manage/user-notes.php?action=reject+' . $id,
290-
'<img src="/images/[email protected]" height="12" width="12" alt="reject note" />',
290+
'<img src="/images/[email protected]" height="12" width="12" alt="reject note">',
291291
'admin',
292292
'scrollbars=no,width=300,height=200'
293293
) . "\n " .
294294

295295
make_popup_link(
296296
'https://master.php.net/manage/user-notes.php?action=delete+' . $id,
297-
'<img src="/images/[email protected]" height="12" width="12" alt="delete note" />',
297+
'<img src="/images/[email protected]" height="12" width="12" alt="delete note">',
298298
'admin',
299299
'scrollbars=no,width=300,height=200'
300300
) . "\n </span>";

include/site.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ function print_full_mirror_list($download_file = null, $direct_download = false)
229229

230230
if (isset($groupped[$COUNTRY])) {
231231
print_mirror_box($COUNTRIES[$COUNTRY], $COUNTRY, $groupped[$COUNTRY], $download_file, $direct_download, true);
232-
echo "<br />";
232+
echo "<br>";
233233
}
234234
}
235235
foreach($groupped as $mirrorcode => $country) {

0 commit comments

Comments
 (0)