mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 09:44:38 +02:00
Minor unrelated adjustments
This commit is contained in:
@@ -1352,7 +1352,7 @@ class PagesLoader extends Wire {
|
||||
}
|
||||
} catch(\Exception $e) {
|
||||
$error = $e->getMessage() . " [pageClass=$class, template=$template]";
|
||||
$user = $this->wire('user');
|
||||
$user = $this->wire()->user;
|
||||
if($user && $user->isSuperuser()) $this->error($error);
|
||||
$this->wire()->log->error($error);
|
||||
$this->trackException($e, false);
|
||||
|
@@ -84,9 +84,10 @@ class PagesLoaderCache extends Wire {
|
||||
if(!ctype_digit("$id")) $id = str_replace('id=', '', $id);
|
||||
if(ctype_digit("$id")) $id = (int) $id;
|
||||
if(!isset($this->pageIdCache[$id])) return null;
|
||||
/** @var Page $page */
|
||||
$page = $this->pageIdCache[$id];
|
||||
$page->setOutputFormatting($this->pages->outputFormatting);
|
||||
$page = $this->pageIdCache[$id]; /** @var Page $page */
|
||||
$of = $this->pages->loader()->getOutputFormatting();
|
||||
if(!$of && $page === $this->wire()->page) return $page; // skip of() adjustment
|
||||
$page->of($of);
|
||||
return $page;
|
||||
}
|
||||
|
||||
|
@@ -666,7 +666,7 @@ ul.action-group{
|
||||
|
||||
/* AdminDataTableSortable */
|
||||
|
||||
.AdminDataTableSortable th {
|
||||
.AdminDataTableSortable th:not(.sorter-false) {
|
||||
&:after {
|
||||
content: "\f0dc";
|
||||
font-family: fontAwesome;
|
||||
@@ -689,7 +689,7 @@ ul.action-group{
|
||||
content: none; // newer version of tablesorter has different markup.
|
||||
}
|
||||
|
||||
tr.tablesorter-headerRow th {
|
||||
tr.tablesorter-headerRow th:not(.sorter-false) {
|
||||
|
||||
& .tablesorter-header-inner:after{
|
||||
content: " ";
|
||||
|
@@ -60,6 +60,12 @@ table.AdminDataList td .sort-date {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/*
|
||||
table.AdminDataTableSortable thead tr.tablesorter-headerRow th.sorter-false .tablesorter-header-inner {
|
||||
display: none !important;
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
table.AdminDataTableResizable,
|
||||
table.AdminDataTableResizable *,
|
||||
@@ -161,5 +167,3 @@ table.AdminDataTableResizable *:after {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@@ -1482,7 +1482,7 @@ class ProcessPageEdit extends Process implements WirePageEditor, ConfigurableMod
|
||||
if($userTemplate && $userTemplate->pageLabelField) {
|
||||
$f->labelFieldFormat = $userTemplate->pageLabelField;
|
||||
} else {
|
||||
$f->labelFieldFormat = '{name} ({email}) [roles.name]';
|
||||
$f->labelFieldFormat = '{name} ({email}) [{roles.name}]';
|
||||
}
|
||||
$f->searchFields = implode(' ', $searchFields);
|
||||
$f->maxSelectedItems = 1;
|
||||
|
Reference in New Issue
Block a user