@@ -160,6 +160,7 @@ class DashboardPanelCollection extends DashboardPanel
160160 elseif (false && $fieldtype == 'FieldtypeDatetime') {
161161 $content = $this->datetime->date($this->dateFormat, $page->getUnformatted($markup));
162162 }
163+
163164 // All others
164165 if ($content === null) {
165166 $content = $page->getText($markup, false, true); // $oneLine, $entities
@@ -262,9 +263,9 @@ class DashboardPanelCollection extends DashboardPanel
262263 {
263264 parent::setup();
264265
265- $this->editURL = $this->config->urls->admin.'page/edit/';
266- $this->addURL = $this->config->urls->admin.'page/add/';
267- $this->listURL = $this->config->urls->admin.'page/list/';
266+ $this->editUrl = $this->config->urls->admin.'page/edit/';
267+ $this->addUrl = $this->config->urls->admin.'page/add/';
268+ $this->listUrl = $this->config->urls->admin.'page/list/';
268269
269270 $this->collection = $this->data['collection'] ?? null;
270271 $this->columns = $this->data['columns'] ?? [
@@ -382,13 +383,13 @@ class DashboardPanelCollection extends DashboardPanel
382383 $out = '';
383384
384385 if ($this->parent && $this->parent->id && $this->parent->addable()) {
385- $action = "{$this->addURL }?parent_id={$this->parent->id}";
386+ $action = "{$this->addUrl }?parent_id={$this->parent->id}";
386387 } elseif ($this->template && ($parent = $this->template->getParentPage(true))) {
387388 if ($parent->id) {
388- $action = "{$this->addURL }?parent_id={$parent->id}";
389+ $action = "{$this->addUrl }?parent_id={$parent->id}";
389390 } // defined parent
390391 else {
391- $action = "{$this->addURL }?template_id={$this->template->id}";
392+ $action = "{$this->addUrl }?template_id={$this->template->id}";
392393 } // multiple possible parents
393394 }
394395
@@ -416,10 +417,10 @@ class DashboardPanelCollection extends DashboardPanel
416417 if ($this->listPage->template == 'admin') {
417418 $action = "{$this->listPage->url}"; // admin process page
418419 } else {
419- $action = "{$this->listURL }?open={$this->listPage->id}"; // open page list at this page
420+ $action = "{$this->listUrl }?open={$this->listPage->id}"; // open page list at this page
420421 }
421422 } elseif ($this->parent && $this->parent->id) {
422- $action = "{$this->listURL }?open={$this->parent->id}"; // open page list at parent page
423+ $action = "{$this->listUrl }?open={$this->parent->id}"; // open page list at parent page
423424 }
424425
425426 if ($action) {
0 commit comments