mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-28 12:30:42 +02:00
[ticket/14972] replace all occurrences of sizeof() with the count()
PHPBB3-14972
This commit is contained in:
@@ -489,12 +489,12 @@ foreach ($lang_references as $lang_var => $filenames)
|
||||
|
||||
$html_data .= '<b>' . $lang_var . '</b><ul>';
|
||||
|
||||
if (sizeof($filenames) != 1)
|
||||
if (count($filenames) != 1)
|
||||
{
|
||||
fwrite($common_fp, (($entry['common']) ? ",\n" : '') . "\t'$var' => '" . $lang[$var] . "'");
|
||||
$entry['common'] = true;
|
||||
}
|
||||
else if (sizeof($filenames) == 1)
|
||||
else if (count($filenames) == 1)
|
||||
{
|
||||
// Merge logical - hardcoded
|
||||
$fname = (preg_match('#^(' . implode('|', $merge) . ')#', $filenames[0], $match)) ? $match[0] . '.php' : str_replace($ext, 'php', $filenames[0]);
|
||||
|
Reference in New Issue
Block a user