1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-09 10:16:36 +02:00

[ticket/16345] Small improvements

PHPBB3-16346
This commit is contained in:
rubencm
2020-06-07 02:15:35 +00:00
parent 3cceeb45bf
commit 774c609c4a
284 changed files with 1380 additions and 835 deletions

View File

@@ -2,7 +2,7 @@
/*
Converts imageset to CSS code
Change style name and path below, open in browser.
*/
@@ -145,8 +145,6 @@ for ($i=0; $i<count($list); $i++)
}
echo ob_get_clean();
return;
/*
Functions
@@ -155,7 +153,7 @@ function get_imageset($path, $lang = '')
{
$cfg = $path . ($lang ? '/' . $lang : '') . '/imageset.cfg';
if (!@file_exists($cfg))
{
{
return false;
}
$data = file($cfg);
@@ -163,12 +161,12 @@ function get_imageset($path, $lang = '')
for ($i=0; $i<count($data); $i++)
{
$str = trim($data[$i]);
if (substr($str, 0, 4) != 'img_')
if (substr($str, 0, 4) != 'img_')
{
continue;
}
$list = explode('=', $data[$i]);
if (count($list) != 2)
if (count($list) != 2)
{
continue;
}
@@ -371,4 +369,3 @@ function css($list, $path = './', $bidi = false)
}
return $code;
}