Module: appdb Branch: master Commit: e82dc74162c2bb6d15a4dd24c64d576f519e5ec2 URL: http://source.winehq.org/git/appdb.git/?a=commit;h=e82dc74162c2bb6d15a4dd24c...
Author: Chris Morgan cmorgan@alum.wpi.edu Date: Tue Sep 18 22:09:57 2007 -0400
Fixes for permission errors introduced by the table permission changes.
---
include/objectManager.php | 8 ++++---- include/table.php | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/include/objectManager.php b/include/objectManager.php index d31f92a..1b2737a 100644 --- a/include/objectManager.php +++ b/include/objectManager.php @@ -159,13 +159,13 @@ class ObjectManager
// if there is no class set for a given row use the // default one in $sColor - if(!$this->oTableRow->oTableRow->GetClass()) + if(!$this->oTableRow->GetTableRow()->GetClass()) { - $this->oTableRow->oTableRow->SetClass($sColor); + $this->oTableRow->GetTableRow()->SetClass($sColor); }
// if this row is clickable, make it highlight appropirately - $oTableRowClick = $this->oTableRow->oTableRow->GetTableRowClick(); + $oTableRowClick = $this->oTableRow->GetTableRow()->GetTableRowClick(); if($oTableRowClick) { $oTableRowHighlight = GetStandardRowHighlight($iCount); @@ -178,7 +178,7 @@ class ObjectManager if($oObject->canEdit()) { $shDeleteLink = ""; - if($this->oTableRow->bHasDeleteLink) + if($this->oTableRow->GetHasDeleteLink()) { $shDeleteLink = ' [ <a href="'.$this->makeUrl("delete", $oObject->objectGetId()). '">delete</a> ]'; diff --git a/include/table.php b/include/table.php index 1a52751..7dfc4b1 100644 --- a/include/table.php +++ b/include/table.php @@ -345,6 +345,11 @@ class OMTableRow { return $this->oTableRow->GetString(); } + + function GetTableRow() + { + return $this->oTableRow; + } }
class Table