1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 00:06:55 +02:00

Merge branch 'pine3ree-patch-2' into dev

This commit is contained in:
Ryan Cramer
2016-11-03 12:16:05 -04:00

View File

@@ -135,8 +135,11 @@ class MarkupAdminDataTable extends ModuleJS {
if(count($this->headerRow)) {
$out .= "\n\t<thead>\n\t<tr>";
foreach($this->headerRow as $th) {
$class = '';
if(is_array($th)) list($th, $class) = $th;
$th = $this->encode($th);
$out .= "\n\t\t<th>$th</th>";
if($class) $class = " class='" . $this->encode($class) . "'";
$out .= "\n\t\t<th$class>$th</th>";
$maxCols++;
}
$out .= "\n\t</tr>\n\t</thead>";