Skip to content

Commit

Permalink
fix type hints
Browse files Browse the repository at this point in the history
thos broke during refactoring
  • Loading branch information
splitbrain committed Jun 16, 2018
1 parent bf9f56c commit 6f343ca
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions inc/Remote/ApiCore.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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));
}
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 6f343ca

Please sign in to comment.