Skip to content

Commit

Permalink
Fix PageFiles vX directory issue with PW's new Page Versions feature.…
Browse files Browse the repository at this point in the history
… Fix deletion of unpublished / hidden children. Update ACE.
  • Loading branch information
adrianbj committed Dec 21, 2023
1 parent ec79b76 commit 10aed70
Show file tree
Hide file tree
Showing 93 changed files with 155 additions and 85 deletions.
2 changes: 1 addition & 1 deletion TracyDebugger.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static function getModuleInfo() {
'summary' => __('Tracy debugger from Nette with many PW specific custom tools.', __FILE__),
'author' => 'Adrian Jones',
'href' => 'https://processwire.com/talk/forum/58-tracy-debugger/',
'version' => '4.25.11',
'version' => '4.25.12',
'autoload' => 100000, // in PW 3.0.114+ higher numbers are loaded first - we want Tracy first
'singular' => true,
'requires' => 'ProcessWire>=2.7.2, PHP>=5.4.4',
Expand Down
4 changes: 2 additions & 2 deletions panels/AdminToolsPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function unhideUnlockFields(restore) {
$p = $this->wire('page');
}

if($p->template != 'admin' && $p->hasChildren()) {
if($p->template != 'admin' && $p->hasChildren('include=all')) {
$i++;
$out .= '
<p>
Expand Down Expand Up @@ -161,4 +161,4 @@ function unhideUnlockFields(restore) {
return parent::loadResources() . $out;
}

}
}
6 changes: 6 additions & 0 deletions panels/PageFilesPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,12 @@ private function getDiskFiles($p) {
}
else {
$files[$p->id] = array_slice(scandir($filesDir), 2);
// remove sub-directories from the list - these are likely from PW's new Page Versions folders, eg v2, v3, v4, etc
foreach ($files[$p->id] as $key => $link) {
if(is_dir($filesDir.$link)) {
unset($files[$p->id][$key]);
}
}
}
}
$p->of($p_of);
Expand Down
2 changes: 1 addition & 1 deletion scripts/ace-editor/ace.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/ace-editor/ext-inline_autocomplete.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/ace-editor/ext-language_tools.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/ace-editor/ext-modelist.js

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

0 comments on commit 10aed70

Please sign in to comment.