summaryrefslogtreecommitdiff
path: root/lib/exe
diff options
context:
space:
mode:
authorTim Roes <mail@timroes.de>2011-11-29 20:42:35 +0100
committerTim Roes <mail@timroes.de>2011-11-29 20:42:35 +0100
commitf3046d2bbd96dc9a501975392e76d6ae539cdf05 (patch)
tree9ef93873d69b61b33ee0e2d3783c8daa2941f565 /lib/exe
parent1c122589394bb9150f09facdcd6e75d054eb69a4 (diff)
downloadrpg-f3046d2bbd96dc9a501975392e76d6ae539cdf05.tar.gz
rpg-f3046d2bbd96dc9a501975392e76d6ae539cdf05.tar.bz2
Second part of the error codes. Forgot some :(
Added the new error codes and categories: --- 212 Not allowed to delete media == 230 Media edit error --- 231 Filename not given --- 232 File is still referenced --- 233 Could not delete file
Diffstat (limited to 'lib/exe')
-rw-r--r--lib/exe/xmlrpc.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/exe/xmlrpc.php b/lib/exe/xmlrpc.php
index 5d19725a3..910271461 100644
--- a/lib/exe/xmlrpc.php
+++ b/lib/exe/xmlrpc.php
@@ -575,7 +575,7 @@ class dokuwiki_xmlrpc_server extends IXR_IntrospectionServer {
$auth = auth_quickaclcheck(getNS($id).':*');
if(!isset($id)) {
- return new IXR_ERROR(1, 'Filename not given.');
+ return new IXR_ERROR(231, 'Filename not given.');
}
global $conf;
@@ -611,11 +611,11 @@ class dokuwiki_xmlrpc_server extends IXR_IntrospectionServer {
if ($res & DOKU_MEDIA_DELETED) {
return 0;
} elseif ($res & DOKU_MEDIA_NOT_AUTH) {
- return new IXR_ERROR(1, "You don't have permissions to delete files.");
+ return new IXR_ERROR(212, "You don't have permissions to delete files.");
} elseif ($res & DOKU_MEDIA_INUSE) {
- return new IXR_ERROR(1, 'File is still referenced');
+ return new IXR_ERROR(232, 'File is still referenced');
} else {
- return new IXR_ERROR(1, 'Could not delete file');
+ return new IXR_ERROR(233, 'Could not delete file');
}
}