mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-16 21:54:00 +02:00
some fixes...
git-svn-id: file:///svn/phpbb/trunk@7813 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -258,7 +258,7 @@ parse_css_file = {PARSE_CSS_FILE}
|
||||
}
|
||||
else
|
||||
{
|
||||
$filelist[substr($row['template_filename'], 0, $slash_pos + 1)] = substr($row['template_filename'], $slash_pos + 1, strlen($row['template_filename']) - $slash_pos - 1);
|
||||
$filelist[substr($row['template_filename'], 0, $slash_pos + 1)][] = substr($row['template_filename'], $slash_pos + 1, strlen($row['template_filename']) - $slash_pos - 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -779,7 +779,7 @@ parse_css_file = {PARSE_CSS_FILE}
|
||||
}
|
||||
else
|
||||
{
|
||||
$filelist[$file_info['dirname'] . '/'][] = "{$file_info['basename']}.{$file_info['extension']}";
|
||||
$filelist[$file_info['dirname'] . '/'][] = $file_info['basename'];
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -42,15 +42,28 @@ class acp_update
|
||||
$announcement_url = trim($info[1]);
|
||||
$update_link = append_sid($phpbb_root_path . 'install/index.' . $phpEx, 'mode=update');
|
||||
|
||||
// Determine automatic update...
|
||||
$sql = 'SELECT config_value
|
||||
FROM ' . CONFIG_TABLE . "
|
||||
WHERE config_name = 'version_update_from'";
|
||||
$result = $db->sql_query($sql);
|
||||
$version_update_from = (string) $db->sql_fetchfield('config_value');
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
$current_version = (!empty($version_update_from)) ? $version_update_from : $config['version'];
|
||||
|
||||
$up_to_date_automatic = (version_compare(str_replace('rc', 'RC', strtolower($current_version)), str_replace('rc', 'RC', strtolower($latest_version)), '<')) ? false : true;
|
||||
$up_to_date = (version_compare(str_replace('rc', 'RC', strtolower($config['version'])), str_replace('rc', 'RC', strtolower($latest_version)), '<')) ? false : true;
|
||||
|
||||
$template->assign_vars(array(
|
||||
'S_UP_TO_DATE' => $up_to_date,
|
||||
'S_UP_TO_DATE_AUTO' => $up_to_date_automatic,
|
||||
'S_VERSION_CHECK' => true,
|
||||
'U_ACTION' => $this->u_action,
|
||||
|
||||
'LATEST_VERSION' => $latest_version,
|
||||
'CURRENT_VERSION' => $config['version'],
|
||||
'AUTO_VERSION' => $version_update_from,
|
||||
|
||||
'UPDATE_INSTRUCTIONS' => sprintf($user->lang['UPDATE_INSTRUCTIONS'], $announcement_url, $update_link),
|
||||
));
|
||||
|
Reference in New Issue
Block a user