- added missing get_sql_condition_FandF in calendar

- cat list removed closing element tags never opened
- removed php warning from web service (cant get the result)

git-svn-id: http://piwigo.org/svn/trunk@1759 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices
2007-01-27 18:20:58 +00:00
parent b003303bc3
commit 9ab24e423b
3 changed files with 11 additions and 9 deletions
+10 -1
View File
@@ -54,6 +54,15 @@ INNER JOIN '.IMAGE_CATEGORY_TABLE.' ON id = image_id';
}
$inner_sql .= '
WHERE category_id IN ('.implode(',',$sub_ids).')';
$inner_sql .= '
'.get_sql_condition_FandF
(
array
(
'visible_images' => 'id'
),
'AND', false
);
}
else
{
@@ -64,7 +73,7 @@ WHERE category_id IN ('.implode(',',$sub_ids).')';
(
'forbidden_categories' => 'category_id',
'visible_categories' => 'category_id',
'visible_images' => 'image_id'
'visible_images' => 'id'
),
'WHERE', true
);
-7
View File
@@ -158,13 +158,6 @@ function ws_std_image_sql_filter( $params, $tbl_name='' )
{
$clauses[] = $tbl_name.'tn_ext IS NOT NULL';
}
// Squared picture to show to rvelices how to solve that kind of request
if ( $params['f_square_ratio'] )
{
$clauses[] = $tbl_name.'width/'.$tbl_name.'height BETWEEN '
. $params['f_square_ratio'] . ' AND '
. (2 - $params['f_square_ratio']) ;
}
return $clauses;
}
+1 -1
View File
@@ -42,7 +42,7 @@
<p>
<strong><a href="{categories.category.U_CHILDREN}" title="{lang:manage sub-categories}">{categories.category.NAME}</a></strong>
<!-- BEGIN virtual -->
<img src="{themeconf:icon_dir}/virt_category.png" class="button" alt="{lang:virtual_category}" /></a></li>
<img src="{themeconf:icon_dir}/virt_category.png" class="button" alt="{lang:virtual_category}" />
<!-- END virtual -->
</p>