The '' is now required

This commit is contained in:
Loïc Chapeaux
2002-03-16 10:08:36 +00:00
parent 65b3f3ccb2
commit 99bfd938fa
41 changed files with 74 additions and 27 deletions

View File

@@ -10,18 +10,8 @@ require('./libraries/common.lib.php3');
// Puts the language to use in a cookie that will expire in 30 days
if (!isset($pma_uri_parts)) {
$pma_uri_parts = parse_url($cfgPmaAbsoluteUri);
if (isset($pma_uri_parts['path'])) {
$cookie_path = substr($pma_uri_parts['path'], 0, strrpos($pma_uri_parts['path'], '/'));
}
else {
$cookie_path = '';
}
if (isset($pma_uri_parts['scheme'])) {
$is_https = ($pma_uri_parts['scheme'] == 'https') ? 1 : 0;
}
else {
$is_https = 0;
}
$cookie_path = substr($pma_uri_parts['path'], 0, strrpos($pma_uri_parts['path'], '/'));
$is_https = ($pma_uri_parts['scheme'] == 'https') ? 1 : 0;
}
setcookie('lang', $lang, time() + 60*60*24*30, $cookie_path, '', $is_https);
// Defines the "item" image depending on text direction