From eab3d5e20e3c823b32aa320f6816f3edb6993d95 Mon Sep 17 00:00:00 2001 From: rvelices Date: Thu, 8 Mar 2007 01:55:49 +0000 Subject: - plugin administration: small fix during activation phase - plugins: added 3 actions in category_cats.inc.php and 1 event that allow a plugin to decide if insertion to #history occurs - added a warning in section_init if script_basename() is not index or picture (I think we'll have issues on some servers with this function) - web service methods categories.getImages, tags.getImages and images.search return now the image comment git-svn-id: http://piwigo.org/svn/trunk@1880 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/ws_functions.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/ws_functions.inc.php') diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php index f6653a457..43a50b093 100644 --- a/include/ws_functions.inc.php +++ b/include/ws_functions.inc.php @@ -375,7 +375,7 @@ LIMIT '.$params['per_page']*$params['page'].','.$params['per_page']; $image[$k] = (int)$row[$k]; } } - foreach ( array('name', 'file') as $k ) + foreach ( array('file', 'name', 'comment') as $k ) { $image[$k] = $row[$k]; } @@ -829,7 +829,7 @@ SELECT * FROM '.IMAGES_TABLE.' $image[$k] = (int)$row[$k]; } } - foreach ( array('name', 'file') as $k ) + foreach ( array('file', 'name', 'comment') as $k ) { $image[$k] = $row[$k]; } @@ -1035,7 +1035,7 @@ LIMIT '.$params['per_page']*$params['page'].','.$params['per_page']; $image[$k] = (int)$row[$k]; } } - foreach ( array('name', 'file') as $k ) + foreach ( array('file', 'name', 'comment') as $k ) { $image[$k] = $row[$k]; } -- cgit v1.2.3