Let objectManager output table headers. A class returns an array of header cells and then
the objectManager adds an edit column if appropriate.
This commit is contained in:
committed by
WineHQ
parent
80e30b65a8
commit
ed7026be6e
@@ -409,7 +409,7 @@ class maintainer
|
||||
return $aUserIds;
|
||||
}
|
||||
|
||||
function ObjectOutputHeader($sClass)
|
||||
function ObjectGetHeader()
|
||||
{
|
||||
$aCells = array(
|
||||
"Submission Date",
|
||||
@@ -418,10 +418,7 @@ class maintainer
|
||||
"Super maintainer?",
|
||||
"Submitter");
|
||||
|
||||
if(maintainer::canEdit())
|
||||
$aCells[sizeof($aCells)] = "Action";
|
||||
|
||||
echo html_tr($aCells, $sClass);
|
||||
return $aCells;
|
||||
}
|
||||
|
||||
/* arg1 = OM object, arg2 = CSS style, arg3 = text for edit link */
|
||||
|
||||
Reference in New Issue
Block a user