1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-12 01:34:31 +02:00

Fix issue processwire/processwire-issues#1023 via @matjazpotocnik suggested fix

This commit is contained in:
Ryan Cramer
2019-11-05 11:08:40 -05:00
parent c9713f0bc4
commit a22e6287be
2 changed files with 2 additions and 2 deletions

View File

@@ -1546,7 +1546,7 @@ class ProcessPageEditImageSelect extends Process implements ConfigurableModule {
(strlen($row['num']) ? $row['num'] : ' '),
"<a class='preview' href='$row[url]'><img src='$row[url]' alt='$row[name]' style='max-width: 100px;' /></a>",
"<a class='preview' href='$row[url]'>$row[name]</a><br /><span class='detail'>$row[width]x$row[height]</span>",
"<span style='display: none;'>$row[filesize]</span>$row[filesizeStr]",
"<span style='display: none;'>$row[filesize] </span>$row[filesizeStr]",
$row['modified'],
implode('<br />', $row['notes']),
//($hasEditPermission ? "<label><input type='checkbox' class='delete' name='delete[]' value='$row[name]' /> &nbsp;</label>" : "&nbsp;")

View File

@@ -448,7 +448,7 @@ class ProcessTemplate extends Process {
$row["{$numPages} "] = "$numPagesLink"; // space is required to make it work
$mod = $template->modified;
$row[] = $mod > 0 ? "<span style='display: none;'>$mod</span>" . wireRelativeTimeStr($mod) : '';
$row[] = $mod > 0 ? "<span style='display: none;'>$mod </span>" . wireRelativeTimeStr($mod) : '';
$row[] = $notes;
return $row;