Changeset 10062
- Timestamp:
- Apr 5, 2011, 3:12:57 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/include/ws_functions.inc.php
-
Property
svn:mergeinfo
set to
/branches/2.1/include/ws_functions.inc.php merged eligible /trunk/include/ws_functions.inc.php merged eligible
r10022 r10062 187 187 function ws_getInfos($params, &$service) 188 188 { 189 global $conf;190 191 if ($conf['show_version'] or is_admin())192 {193 $infos['version'] = PHPWG_VERSION; 194 }189 if (!is_admin()) 190 { 191 return new PwgError(403, 'Forbidden'); 192 } 193 194 $infos['version'] = PHPWG_VERSION; 195 195 196 196 $query = 'SELECT COUNT(*) FROM '.IMAGES_TABLE.';'; … … 232 232 233 233 // unvalidated comments 234 if ($infos['nb_comments'] > 0 and is_admin())234 if ($infos['nb_comments'] > 0) 235 235 { 236 236 $query = 'SELECT COUNT(*) FROM '.COMMENTS_TABLE.' WHERE validated=\'false\';'; -
Property
svn:mergeinfo
set to
Note: See TracChangeset
for help on using the changeset viewer.