summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorDominik Eckelmann <deckelmann@gmail.com>2012-03-21 11:01:38 +0100
committerDominik Eckelmann <deckelmann@gmail.com>2012-03-21 11:01:38 +0100
commit4ea1d54936a1d1e9b919e06639632bc2ac65f6d3 (patch)
tree88acb62443cf2b93624b91616f3f40514adb356a /inc
parent3a6d76070be7220b8e5f7c04443aa923bc8cddf2 (diff)
downloadrpg-4ea1d54936a1d1e9b919e06639632bc2ac65f6d3.tar.gz
rpg-4ea1d54936a1d1e9b919e06639632bc2ac65f6d3.tar.bz2
typo fixes
Diffstat (limited to 'inc')
-rw-r--r--inc/remote.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/inc/remote.php b/inc/remote.php
index c8af76420..fb095f517 100644
--- a/inc/remote.php
+++ b/inc/remote.php
@@ -92,7 +92,7 @@ class RemoteAPI {
$plugin = plugin_load('remote', $pluginName);
$methods = $this->getPluginMethods();
if (!$plugin) {
- throw new RemoteException('Method dose not exists', -32603);
+ throw new RemoteException('Method does not exist', -32603);
}
$this->checkAccess($methods[$method]);
$name = $this->getMethodName($methods, $method);
@@ -103,7 +103,7 @@ class RemoteAPI {
$coreMethods = $this->getCoreMethods();
$this->checkAccess($coreMethods[$method]);
if (!isset($coreMethods[$method])) {
- throw new RemoteException('Method dose not exists', -32603);
+ throw new RemoteException('Method does not exist', -32603);
}
$this->checkArgumentLength($coreMethods[$method], $args);
return call_user_func_array(array($this->coreMethods, $this->getMethodName($coreMethods, $method)), $args);
@@ -121,7 +121,7 @@ class RemoteAPI {
private function checkArgumentLength($method, $args) {
if (count($method['args']) < count($args)) {
- throw new RemoteException('Method dose not exists - wrong parameter count.', -32603);
+ throw new RemoteException('Method does not exist - wrong parameter count.', -32603);
}
}
@@ -173,7 +173,7 @@ class RemoteAPI {
foreach ($plugins as $pluginName) {
$plugin = plugin_load('remote', $pluginName);
if (!is_subclass_of($plugin, 'DokuWiki_Remote_Plugin')) {
- throw new RemoteException("Plugin $pluginName dose not implement DokuWiki_Remote_Plugin");
+ throw new RemoteException("Plugin $pluginName does not implement DokuWiki_Remote_Plugin");
}
$methods = $plugin->_getMethods();