Skip to content
Permalink
Browse files

fix type hints

thos broke during refactoring
  • Loading branch information...
splitbrain committed Jun 16, 2018
1 parent bf9f56c commit 6f343ca8db86f0a5fa3d95c7301cb9cd0877a1e0
Showing with 3 additions and 4 deletions.
  1. +3 −4 inc/Remote/ApiCore.php
@@ -5,7 +5,6 @@
use Doku_Renderer_xhtml;
use dokuwiki\ChangeLog\MediaChangeLog;
use dokuwiki\ChangeLog\PageChangeLog;
use dokuwiki\Extension\AuthPlugin;
use dokuwiki\Extension\Event;
define('DOKU_API_VERSION', 10);
@@ -595,7 +594,7 @@ public function deleteUsers($usernames)
if (!auth_isadmin()) {
throw new AccessDeniedException('Only admins are allowed to delete users', 114);
}
/** @var \dokuwiki\Plugin\\dokuwiki\Extension\AuthPlugin $auth */
/** @var \dokuwiki\Extension\AuthPlugin $auth */
global $auth;
return (bool)$auth->triggerUserMod('delete', array($usernames));
}
@@ -672,7 +671,7 @@ public function deleteAttachment($id)
*/
public function aclCheck($id, $user = null, $groups = null)
{
/** @var \dokuwiki\Plugin\\dokuwiki\Extension\AuthPlugin $auth */
/** @var \dokuwiki\Extension\AuthPlugin $auth */
global $auth;
$id = $this->resolvePageId($id);
@@ -966,7 +965,7 @@ public function getAPIVersion()
public function login($user, $pass)
{
global $conf;
/** @var \dokuwiki\Plugin\\dokuwiki\Extension\AuthPlugin $auth */
/** @var \dokuwiki\Extension\AuthPlugin $auth */
global $auth;
if (!$conf['useacl']) return 0;

0 comments on commit 6f343ca

Please sign in to comment.
You can’t perform that action at this time.