Feature 1255 :
misspelled function parenthesis missing git-svn-id: http://piwigo.org/svn/trunk@4388 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
ad796f152f
commit
2f8800b35b
2 changed files with 3 additions and 3 deletions
|
@ -32,7 +32,7 @@ include_once( PHPWG_ROOT_PATH .'include/functions_url.inc.php' );
|
|||
include_once( PHPWG_ROOT_PATH .'include/functions_plugins.inc.php' );
|
||||
|
||||
//----------------------------------------------------------- generic functions
|
||||
function get_extra_fiels($order_by_fields)
|
||||
function get_extra_fields($order_by_fields)
|
||||
{
|
||||
$fields = str_ireplace(array(' order by ', ' desc', ' asc'),
|
||||
array('', '', ''),
|
||||
|
|
|
@ -443,7 +443,7 @@ SELECT image_id
|
|||
}
|
||||
|
||||
$query = '
|
||||
SELECT DISTINCT(id)'.get_extra_fields($conf['order_by'].'
|
||||
SELECT DISTINCT(id)'.get_extra_fields($conf['order_by']).'
|
||||
FROM '.IMAGES_TABLE.'
|
||||
INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON id = ic.image_id
|
||||
WHERE
|
||||
|
@ -531,7 +531,7 @@ SELECT DISTINCT(id), average_rate
|
|||
else if ($page['section'] == 'list')
|
||||
{
|
||||
$query ='
|
||||
SELECT DISTINCT(id)'.get_extra_fields($conf['order_by'].'
|
||||
SELECT DISTINCT(id)'.get_extra_fields($conf['order_by']).'
|
||||
FROM '.IMAGES_TABLE.'
|
||||
INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON id = ic.image_id
|
||||
WHERE image_id IN ('.implode(',', $page['list']).')
|
||||
|
|
Loading…
Reference in a new issue