Skip to content

Commit

Permalink
Update Group.php
Browse files Browse the repository at this point in the history
  • Loading branch information
armandostyl committed Dec 22, 2023
1 parent 0357446 commit 60df524
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions types/Group.php
@@ -1,5 +1,5 @@
<?php
namespace dokuwiki\plugin\structgroup\types;
namespace dokuwiki\plugin\structgroup8\types;

use dokuwiki\plugin\struct\meta\QueryBuilder;
use dokuwiki\plugin\struct\meta\QueryBuilderWhere;
Expand All @@ -25,8 +25,8 @@ public function validate($rawvalue) {
$rawvalue = parent::validate($rawvalue);

if($this->config['existingonly']) {
/** @var \helper_plugin_structgroup_authgroup $authgroup */
$authgroup = plugin_load('helper', 'structgroup_authgroup');
/** @var \helper_plugin_structgroup8_authgroup $authgroup */
$authgroup = plugin_load('helper', 'structgroup8_authgroup');

if(! in_array($rawvalue, $authgroup->getGroups())) {
throw new ValidationException('Group not found: "' . $rawvalue .
Expand Down Expand Up @@ -57,8 +57,8 @@ public function renderValue($value, \Doku_Renderer $R, $mode) {
public function handleAjax() {
global $INPUT;

/** @var \helper_plugin_structgroup_authgroup $authgroup */
$authgroup = plugin_load('helper', 'structgroup_authgroup');
/** @var \helper_plugin_structgroup8_authgroup $authgroup */
$authgroup = plugin_load('helper', 'structgroup8_authgroup');

// check minimum length
$lookup = trim($INPUT->str('search'));
Expand Down

0 comments on commit 60df524

Please sign in to comment.