Changeset 2583 for trunk/include
- Timestamp:
- Sep 24, 2008, 10:25:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/ws_functions.inc.php
r2572 r2583 1336 1336 ); 1337 1337 } 1338 1339 function ws_categories_add($params, &$service) 1340 { 1341 if (!is_admin()) 1342 { 1343 return new PwgError(401, 'Access denied'); 1344 } 1345 1346 include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); 1347 1348 $creation_output = create_virtual_category( 1349 $params['name'], 1350 $params['parent'] 1351 ); 1352 1353 if (isset($creation_output['error'])) 1354 { 1355 return new PwgError(500, $creation_output['error']); 1356 } 1357 1358 return $creation_output; 1359 } 1338 1360 ?>
Note: See TracChangeset
for help on using the changeset viewer.