aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-07-31 21:34:06 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-07-31 21:34:06 +0000
commit56552d1e2b1a8191b38449a763787c0743316c1f (patch)
tree26e52a3f295e7fb16d4d2acef051f6905c286371 /phpBB/includes/functions.php
parent092c82db7f62f931399b9ef22d96e2bad91de434 (diff)
downloadforums-56552d1e2b1a8191b38449a763787c0743316c1f.tar
forums-56552d1e2b1a8191b38449a763787c0743316c1f.tar.gz
forums-56552d1e2b1a8191b38449a763787c0743316c1f.tar.bz2
forums-56552d1e2b1a8191b38449a763787c0743316c1f.tar.xz
forums-56552d1e2b1a8191b38449a763787c0743316c1f.zip
More compliance ... it never ends
git-svn-id: file:///svn/phpbb/trunk@773 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index ee87251a6d..a5125c4913 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -207,7 +207,7 @@ function make_forum_box($box_name, $default_forum = -1)
$boxstring .= "<option value=\"".$forum_rows[$y]['forum_id']."\"";
if($forum_rows[$y]['forum_id'] == $default_forum)
{
- $boxstring .= " SELECTED";
+ $boxstring .= " selected=\"selected\"";
}
$boxstring .= ">$name</option>\n";
}
@@ -638,7 +638,7 @@ function language_select($default, $dirname="language/")
$filename = str_replace("lang_", "", $file);
$filename = str_replace(".$phpEx", "", $filename);
$displayname = preg_replace("/(.*)_(.*)/", "\\1 [ \\2 ]", $filename);
- $selected = (strtolower($default) == strtolower($filename)) ? " selected" : "";
+ $selected = (strtolower($default) == strtolower($filename)) ? " selected=\"selected\"" : "";
$lang_select .= " <option value=\"$filename\"$selected>".ucwords($displayname)."</option>\n";
}
}
@@ -664,7 +664,7 @@ function template_select($default, $dirname = "templates")
{
if($file == $default)
{
- $selected = " selected";
+ $selected = " selected=\"selected\"";
}
$template_select .= "<option value=\"$file\"$selected>$file</option>\n";
}
@@ -695,7 +695,7 @@ function theme_select($default)
{
if(stripslashes($rowset[$i]['themes_name']) == $default || $rowset[$i]['themes_id'] == $default)
{
- $selected = " selected";
+ $selected = " selected=\"selected\"";
}
else
{
@@ -730,10 +730,10 @@ function tz_select($default)
"-11" => "(GMT -11:00 hours) Midway Island, Samoa",
"-10" => "(GMT -10:00 hours) Hawaii",
"-9" => "(GMT -9:00 hours) Alaska",
- "-8" => "(GMT -8:00 hours) Pacific Time (US & Canada)",
- "-7" => "(GMT -7:00 hours) Mountain Time (US & Canada)",
- "-6" => "(GMT -6:00 hours) Central Time (US & Canada), Mexico City",
- "-5" => "(GMT -5:00 hours) Eastern Time (US & Canada), Bogota, Lima, Quito",
+ "-8" => "(GMT -8:00 hours) Pacific Time (US &amp; Canada)",
+ "-7" => "(GMT -7:00 hours) Mountain Time (US &amp; Canada)",
+ "-6" => "(GMT -6:00 hours) Central Time (US &amp; Canada), Mexico City",
+ "-5" => "(GMT -5:00 hours) Eastern Time (US &amp; Canada), Bogota, Lima, Quito",
"-4" => "(GMT -4:00 hours) Atlantic Time (Canada), Caracas, La Paz",
"-3.5" => "(GMT -3:30 hours) Newfoundland",
"-3" => "(GMT -3:00 hours) Brazil, Buenos Aires, Georgetown",
@@ -759,7 +759,7 @@ function tz_select($default)
while(list($offset, $zone) = each($tz_array))
{
- $selected = ($offset == $default) ? " selected" : "";
+ $selected = ($offset == $default) ? " selected=\"selected\"" : "";
$tz_select .= "\t<option value=\"$offset\"$selected>$zone</option>\n";
}
$tz_select .= "</select>\n";