diff options
author | chrisaga <chrisaga@piwigo.org> | 2006-04-29 10:36:49 +0000 |
---|---|---|
committer | chrisaga <chrisaga@piwigo.org> | 2006-04-29 10:36:49 +0000 |
commit | 84326ab9441000f93a8a4435e4ff39580fd04bf2 (patch) | |
tree | 9d1f1aaba8f8f714c7c3c9396f1cca6065d4d3ee /include | |
parent | e827e05429469912c450d2a1ee6750fffc82dbde (diff) |
- merge trunk r1289:1290 into branch 1.6 (bug 358 fixed)
git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1291 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r-- | include/category_subcats.inc.php | 4 | ||||
-rw-r--r-- | include/functions.inc.php | 12 | ||||
-rw-r--r-- | include/functions_html.inc.php | 4 | ||||
-rw-r--r-- | include/page_header.php | 1 |
4 files changed, 6 insertions, 15 deletions
diff --git a/include/category_subcats.inc.php b/include/category_subcats.inc.php index 578cabde6..60a7c4225 100644 --- a/include/category_subcats.inc.php +++ b/include/category_subcats.inc.php @@ -149,7 +149,7 @@ SELECT id, path, tn_ext 'categories.category', array( 'SRC' => $thumbnail_src_of[ $category['picture'] ], - 'ALT' => htmlentities($category['name'],ENT_QUOTES), + 'ALT' => $category['name'], 'TITLE' => $lang['hint_category'], 'ICON' => get_icon(@$category['date_last']), @@ -159,7 +159,7 @@ SELECT id, path, tn_ext 'cat_name' => $category['name'], ) ), - 'NAME' => htmlentities($category['name'],ENT_QUOTES), + 'NAME' => $category['name'], 'CAPTION_NB_IMAGES' => (($category['nb_images'] == 0) ? '' : sprintf("%d ".l10n('pictures'), $category['nb_images'])), 'DESCRIPTION' => @$category['comment'], ) diff --git a/include/functions.inc.php b/include/functions.inc.php index 166b0798f..1a71112f7 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -799,7 +799,7 @@ function get_name_from_file($filename) * @param string key * @return string */ -function raw_l10n($key) +function l10n($key) { global $lang, $conf; @@ -810,16 +810,6 @@ function raw_l10n($key) return isset($lang[$key]) ? $lang[$key] : $key; } -/** - * Like l10n but converts html entities - * - * @param string key - * @return string - */ -function l10n($key) -{ - return htmlentities(raw_l10n($key),ENT_QUOTES); -} /** * returns the corresponding value from $themeconf if existing. Else, the diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index 65cbc879c..7db40add4 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -450,7 +450,7 @@ function get_html_menu_category($categories) { $menu.= ' rel="up"'; } - $menu.= '>'.htmlentities($category['name'],ENT_QUOTES).'</a>'; + $menu.= '>'.$category['name'].'</a>'; if ($category['nb_images'] > 0) { @@ -550,7 +550,7 @@ function get_html_tag_selection( $output.= ' />' - .' '. htmlentities($tag['name'],ENT_QUOTES) + .' '. $tag['name'] .'</label>' .'</li>' ."\n" diff --git a/include/page_header.php b/include/page_header.php index f1f10cf56..36b35c4ce 100644 --- a/include/page_header.php +++ b/include/page_header.php @@ -68,5 +68,6 @@ if ( isset( $refresh ) and intval($refresh) >= 0 and isset( $url_link ) and isse $template->assign_block_vars('refresh', array()); } +header('Content-Type: text/html; charset='.$lang_info['charset']); $template->parse('header'); ?> |