elseif -> else if

git-svn-id: file:///svn/phpbb/trunk@6765 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2006-12-15 02:38:14 +00:00
parent 837fcd1295
commit 950d67d60e
5 changed files with 10 additions and 10 deletions

View file

@ -89,7 +89,7 @@ function my_var_export($var)
return 'array(' . implode(',', $lines) . ')';
}
elseif (is_string($var))
else if (is_string($var))
{
return "'" . str_replace(array('\\', "'"), array('\\\\', "\\'"), $var) . "'";
}

View file

@ -320,7 +320,7 @@ while ($line = fgets($fp, 1024))
*/
$map[$cp] = strtolower($capture[1]);
}
elseif (isset($m[13][0]))
else if (isset($m[13][0]))
{
/**
* If the letter has a lowercased form, use it
@ -455,7 +455,7 @@ function my_var_export($var)
return 'array(' . implode(',', $lines) . ')';
}
elseif (is_string($var))
else if (is_string($var))
{
return "'" . str_replace(array('\\', "'"), array('\\\\', "\\'"), $var) . "'";
}
@ -544,11 +544,11 @@ function cp_to_utf($cp)
{
return chr(0xF0 | ($cp >> 18)) . chr(0x80 | (($cp >> 12) & 0x3F)) . chr(0x80 | (($cp >> 6) & 0x3F)) . chr(0x80 | ($cp & 0x3F));
}
elseif ($cp > 0x7FF)
else if ($cp > 0x7FF)
{
return chr(0xE0 | ($cp >> 12)) . chr(0x80 | (($cp >> 6) & 0x3F)) . chr(0x80 | ($cp & 0x3F));
}
elseif ($cp > 0x7F)
else if ($cp > 0x7F)
{
return chr(0xC0 | ($cp >> 6)) . chr(0x80 | ($cp & 0x3F));
}

View file

@ -60,7 +60,7 @@ while ($module = array_shift($keys))
$compare = "Equal";
$equal++;
}
elseif (strcasecmp($kkeys[$module][$dup], $kkeys[$other_module][$dup]) == 0)
else if (strcasecmp($kkeys[$module][$dup], $kkeys[$other_module][$dup]) == 0)
{
$compare = "Differ in case";
$case++;

View file

@ -365,11 +365,11 @@ function cp_to_utf($cp)
{
return chr(0xF0 | ($cp >> 18)) . chr(0x80 | (($cp >> 12) & 0x3F)) . chr(0x80 | (($cp >> 6) & 0x3F)) . chr(0x80 | ($cp & 0x3F));
}
elseif ($cp > 0x7FF)
else if ($cp > 0x7FF)
{
return chr(0xE0 | ($cp >> 12)) . chr(0x80 | (($cp >> 6) & 0x3F)) . chr(0x80 | ($cp & 0x3F));
}
elseif ($cp > 0x7F)
else if ($cp > 0x7F)
{
return chr(0xC0 | ($cp >> 6)) . chr(0x80 | ($cp & 0x3F));
}

View file

@ -1178,7 +1178,7 @@ pagination_sep = \'{PAGINATION_SEP}\'
}
// else if we are showing raw css or the user submitted data from the simple view
// then we need to turn the given information into raw css
elseif (!$css_data && !$add_custom)
else if (!$css_data && !$add_custom)
{
foreach ($match_elements as $type => $match_ary)
{
@ -1245,7 +1245,7 @@ pagination_sep = \'{PAGINATION_SEP}\'
}
}
// make sure we have $show_css set, so we can link to the show_css page if we need to
elseif (!$hide_css)
else if (!$hide_css)
{
$show_css = true;
}