diff options
author | rvelices <rv-github@modusoptimus.com> | 2007-02-06 01:02:06 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2007-02-06 01:02:06 +0000 |
commit | dd339aa6c50267337e786e9e20811b535edd985b (patch) | |
tree | f541a88da4289f24b97a2aa430fd4f05e7be4d97 /include/ws_core.inc.php | |
parent | 01be744d0716119e993a0d9798534fd3f53e5fff (diff) |
web services:
- respect conf['allow_web_services']
- added conf['ws_max_images_per_page'] to limit the number of images returned per web call
- fixes for Vincent's partners
- added comments
git-svn-id: http://piwigo.org/svn/trunk@1781 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/ws_core.inc.php')
-rw-r--r-- | include/ws_core.inc.php | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/include/ws_core.inc.php b/include/ws_core.inc.php index 77f79388c..a3e8c7770 100644 --- a/include/ws_core.inc.php +++ b/include/ws_core.inc.php @@ -3,11 +3,10 @@ // | PhpWebGallery - a PHP based picture gallery | // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | // +-----------------------------------------------------------------------+ -// | branch : BSF (Best So Far) -// | file : $URL: svn+ssh://rvelices@svn.gna.org/svn/phpwebgallery/trunk/action.php $ -// | last update : $Date: 2006-12-21 18:49:12 -0500 (Thu, 21 Dec 2006) $ -// | last modifier : $Author: rvelices $ -// | revision : $Rev: 1678 $ +// | file : $Id$ +// | last update : $Date$ +// | last modifier : $Author$ +// | revision : $Revision$ // +-----------------------------------------------------------------------+ // | This program is free software; you can redistribute it and/or modify | // | it under the terms of the GNU General Public License as published by | @@ -142,7 +141,7 @@ class PwgNamedStruct * @link http://php.net/function.array_walk_recursive * @author Tom Buskens <ortega@php.net> * @author Aidan Lister <aidan@php.net> - * @version $Revision: 1.7 $ + * @version $Revision$ * @since PHP 5 * @require PHP 4.0.6 (is_callable) */ @@ -556,6 +555,10 @@ Response format: ".@$this->_responseFormat." encoder:".$this->_responseEncoder." { $this->makeArrayParam( $the_param ); } + if ( isset($options['maxValue']) and $the_param>$options['maxValue']) + { + $the_param = $options['maxValue']; + } $params[$name] = $the_param; } } |