mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-19 16:13:00 +02:00
Feature 511 : fix problems with calendar functions
add pwg_db_concat() function git-svn-id: http://piwigo.org/svn/trunk@4833 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -948,7 +948,7 @@ SELECT DISTINCT(storage_category_id)
|
||||
{
|
||||
$query = '
|
||||
UPDATE '.IMAGES_TABLE.'
|
||||
SET path = CONCAT(\''.$fulldirs[$cat_id].'\',\'/\',file)
|
||||
SET path = '.pwg_db_concat(array($fulldirs[$cat_id],'\'/\'','file')).'
|
||||
WHERE storage_category_id = '.$cat_id.'
|
||||
;';
|
||||
pwg_query($query);
|
||||
|
||||
@@ -192,8 +192,8 @@ DELETE FROM '.OLD_PERMALINKS_TABLE.'
|
||||
$query = '
|
||||
UPDATE '.CATEGORIES_TABLE.'
|
||||
SET permalink="'.$permalink.'"
|
||||
WHERE id='.$cat_id.'
|
||||
LIMIT 1';
|
||||
WHERE id='.$cat_id;
|
||||
// LIMIT 1';
|
||||
pwg_query($query);
|
||||
|
||||
unset( $cache['cat_names'] ); //force regeneration
|
||||
|
||||
Reference in New Issue
Block a user