Skip to content

Commit

Permalink
Merge pull request #12205 from aembler/misc-fixes-091024-2
Browse files Browse the repository at this point in the history
Misc Fixes 09/10/24 2
  • Loading branch information
aembler authored Sep 10, 2024
2 parents be287b5 + 5ad0aab commit ea54ded
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 14 deletions.
10 changes: 9 additions & 1 deletion controllers/backend/group/chooser.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Concrete\Core\Error\UserMessageException;
use Concrete\Core\Http\ResponseFactoryInterface;
use Concrete\Core\Tree\Type\Group;
use Concrete\Core\Tree\Node\Type\Group as GroupNode;
use Concrete\Core\User\Group\GroupList;

class Chooser extends GroupController
Expand All @@ -20,7 +21,14 @@ public function getTree()
$this->checkAccess(true);
$tree = Group::get();

return $this->app->make(ResponseFactoryInterface::class)->json($tree);
$guestGroupNode = GroupNode::getTreeNodeByGroupID(GUEST_GROUP_ID);
$registeredGroupNode = GroupNode::getTreeNodeByGroupID(REGISTERED_GROUP_ID);

return $this->app->make(ResponseFactoryInterface::class)->json([
'tree' => $tree,
'guestGroupTreeNodeID' => $guestGroupNode->getTreeNodeID(),
'registeredGroupTreeNodeID' => $registeredGroupNode->getTreeNodeID(),
]);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion controllers/backend/user_interface.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function getViewObject()
public function action()
{
$token = isset($this->validationToken) ? $this->validationToken : get_class($this);
$url = (string) call_user_func_array('parent::action', func_get_args());
$url = (string) call_user_func_array([parent::class, 'action'], func_get_args());
$url .= (strpos($url, '?') === false ? '?' : '&') . $this->app->make('token')->getParameter($token);

return $url;
Expand Down
2 changes: 1 addition & 1 deletion controllers/backend/user_interface/block.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ protected function getBlockToEdit()

public function action()
{
$url = call_user_func_array('parent::action', func_get_args());
$url = call_user_func_array([parent::class, 'action'], func_get_args());
$url .= '&arHandle=' . urlencode($this->area->getAreaHandle());
$url .= '&bID=' . $this->block->getBlockID();

Expand Down
2 changes: 1 addition & 1 deletion controllers/backend/user_interface/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function getViewObject()

public function action()
{
$url = call_user_func_array('parent::action', func_get_args());
$url = call_user_func_array([parent::class, 'action'], func_get_args());
$url .= '&fID=' . $this->file->getFileID();

return $url;
Expand Down
2 changes: 1 addition & 1 deletion controllers/backend/user_interface/page.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function action()
} else {
$cID = $this->page->getCollectionID();
}
$url = call_user_func_array('parent::action', func_get_args());
$url = call_user_func_array([parent::class, 'action'], func_get_args());
$url .= '&cID=' . $cID;

return $url;
Expand Down
2 changes: 1 addition & 1 deletion controllers/dialog/area/design.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function submit()

public function action()
{
$url = call_user_func_array('parent::action', func_get_args());
$url = call_user_func_array([parent::class, 'action'], func_get_args());
$url .= '&arHandle=' . h($this->area->getAreaHandle());

return $url;
Expand Down
2 changes: 1 addition & 1 deletion controllers/dialog/event/summary_templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protected function getOccurrenceFromRequest(): CalendarEventVersionOccurrence
public function action()
{
$occurrence = $this->getOccurrenceFromRequest();
$url = call_user_func_array('parent::action', func_get_args());
$url = call_user_func_array([parent::class, 'action'], func_get_args());
$url .= '&versionOccurrenceID=' . $occurrence->getID();
return $url;
}
Expand Down
2 changes: 1 addition & 1 deletion controllers/dialog/tree/node.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function view()

public function action()
{
$url = call_user_func_array('parent::action', func_get_args());
$url = call_user_func_array([parent::class, 'action'], func_get_args());
if (isset($this->node)) {
$url .= '&treeNodeID=' . $this->node->getTreeNodeID();
}
Expand Down
2 changes: 1 addition & 1 deletion js/cms.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/features/navigation/frontend.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/View/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public function renderViewContents($scopeItems)
}

// Render the template around it
if (file_exists($this->template)) {
if ($this->template != '' && file_exists($this->template)) {
$contents = $this->renderTemplate($scopeItems, $contents);
}

Expand Down
2 changes: 1 addition & 1 deletion themes/atomik/main.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions themes/dashboard/main.js

Large diffs are not rendered by default.

0 comments on commit ea54ded

Please sign in to comment.