diff options
Diffstat (limited to '')
-rw-r--r-- | action.php | 8 | ||||
-rw-r--r-- | include/filter.inc.php | 4 | ||||
-rw-r--r-- | include/functions_tag.inc.php | 10 | ||||
-rw-r--r-- | include/functions_url.inc.php | 2 | ||||
-rw-r--r-- | include/page_header.php | 1 | ||||
-rw-r--r-- | language/en_UK.iso-8859-1/common.lang.php | 4 | ||||
-rw-r--r-- | template/yoga/header.tpl | 1 |
7 files changed, 12 insertions, 18 deletions
diff --git a/action.php b/action.php index c0cab23de..586d730a3 100644 --- a/action.php +++ b/action.php @@ -80,15 +80,15 @@ if ( empty($element_info) ) { do_error(404, 'Requested id not found'); } -
-// $filter['visible_categories'] and $filter['visible_images']
+ +// $filter['visible_categories'] and $filter['visible_images'] // are not used because it's not necessary (filter <> restriction) $query=' SELECT id FROM '.CATEGORIES_TABLE.' INNER JOIN '.IMAGE_CATEGORY_TABLE.' ON category_id=id - WHERE image_id='.$id.'
-.'get_sql_condition_FandF(array('forbidden_categories' => 'category_id'), 'AND').'
+ WHERE image_id='.$id.' +'.get_sql_condition_FandF(array('forbidden_categories' => 'category_id'), 'AND').' LIMIT 1 ;'; if ( mysql_num_rows(pwg_query($query))<1 ) diff --git a/include/filter.inc.php b/include/filter.inc.php index 3a1279f94..fd3bf0cda 100644 --- a/include/filter.inc.php +++ b/include/filter.inc.php @@ -33,7 +33,7 @@ $filter = array(); // $filter['visible_images']: List of visible images
-$filter['enabled'] =
+$filter['enabled'] =
(in_array(basename($_SERVER['SCRIPT_FILENAME']), $conf['filter_pages'])) and
(
(isset($_GET['filter']) and ($_GET['filter'] == 'start')) or
@@ -98,7 +98,7 @@ WHERE '; $filter['visible_images'] = pwg_get_session_var('filter_visible_images', '');
}
- $header_notes[] = l10n_dec($lang['note_filter_day'], $lang['note_filter_days'], $user['recent_period']);
+ $header_notes[] = l10n_dec('note_filter_day', 'note_filter_days', $user['recent_period']);
}
else
{
diff --git a/include/functions_tag.inc.php b/include/functions_tag.inc.php index c01bb2fc7..42704d238 100644 --- a/include/functions_tag.inc.php +++ b/include/functions_tag.inc.php @@ -84,10 +84,8 @@ SELECT DISTINCT image_id ;'; $result = pwg_query($tags_query); - $tags = array(); - - while ($row = mysql_fetch_array($result)) + while ($row = mysql_fetch_assoc($result)) { array_push($tags, $row); } @@ -109,10 +107,8 @@ SELECT id AS tag_id, FROM '.TAGS_TABLE.' ;'; $result = pwg_query($query); - $tags = array(); - - while ($row = mysql_fetch_array($result)) + while ($row = mysql_fetch_assoc($result)) { array_push($tags, $row); } @@ -269,7 +265,7 @@ SELECT tag_id, name, url_name, count(*) counter $result = pwg_query($query); $tags = array(); - while($row = mysql_fetch_array($result)) + while($row = mysql_fetch_assoc($result)) { array_push($tags, $row); } diff --git a/include/functions_url.inc.php b/include/functions_url.inc.php index e50f3e2e8..53792083d 100644 --- a/include/functions_url.inc.php +++ b/include/functions_url.inc.php @@ -419,7 +419,7 @@ function set_make_full_url() $page['save_root_path']['path'] = $page['root_path']; } $page['save_root_path']['count'] = 1; - $page['root_path'] = 'http://'.$_SERVER['HTTP_HOST'].cookie_path(); + $page['root_path'] = get_host_url().cookie_path(); } else { diff --git a/include/page_header.php b/include/page_header.php index db7fa3b9a..2a82d5e4b 100644 --- a/include/page_header.php +++ b/include/page_header.php @@ -64,7 +64,6 @@ if (isset($header_infos)) // Header notes if (count($header_notes) > 0) { - $template->assign_block_vars('header_notes', array()); foreach ($header_notes as $header_note) { $template->assign_block_vars('header_notes.header_note', diff --git a/language/en_UK.iso-8859-1/common.lang.php b/language/en_UK.iso-8859-1/common.lang.php index dc16445c1..bc60feaa5 100644 --- a/language/en_UK.iso-8859-1/common.lang.php +++ b/language/en_UK.iso-8859-1/common.lang.php @@ -475,8 +475,8 @@ $lang['identification'] = 'Identification'; $lang['image_available'] = '%d image'; $lang['images_available'] = '%d images'; $lang['images_available_cpl'] = 'in this category'; -$lang['images_available_cat'] = 'in %d sub-catégory'; -$lang['images_available_cats'] = 'in %d sub-catégories'; +$lang['images_available_cat'] = 'in %d sub-category'; +$lang['images_available_cats'] = 'in %d sub-categories'; $lang['included'] = 'included'; $lang['invalid_pwd'] = 'Invalid password!'; $lang['language']='Language'; diff --git a/template/yoga/header.tpl b/template/yoga/header.tpl index 5032a3f04..563da9ec1 100644 --- a/template/yoga/header.tpl +++ b/template/yoga/header.tpl @@ -3,7 +3,6 @@ <html lang="{LANG}" dir="{DIR}"> <head> <meta http-equiv="Content-Type" content="text/html; charset={CONTENT_ENCODING}"> -<meta name="robots" content="index, follow"> <meta name="generator" content="PhpWebGallery (aka PWG), see www.phpwebgallery.net"> <!-- BEGIN header_meta --> <meta name="author" content="{header_meta.INFO_AUTHOR}"> |