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:
@@ -135,8 +135,11 @@ class MarkupAdminDataTable extends ModuleJS {
|
||||
if(count($this->headerRow)) {
|
||||
$out .= "\n\t<thead>\n\t<tr>";
|
||||
foreach($this->headerRow as $th) {
|
||||
$th = $this->encode($th);
|
||||
$out .= "\n\t\t<th>$th</th>";
|
||||
$class = '';
|
||||
if(is_array($th)) list($th, $class) = $th;
|
||||
$th = $this->encode($th);
|
||||
if($class) $class = " class='" . $this->encode($class) . "'";
|
||||
$out .= "\n\t\t<th$class>$th</th>";
|
||||
$maxCols++;
|
||||
}
|
||||
$out .= "\n\t</tr>\n\t</thead>";
|
||||
|
Reference in New Issue
Block a user