Start to move maintainer related functions into maintainer class and separate maintainer related queries and logic from
display code. Also move maintainer related code from the user class. Fix up unit tests to work with the new maintainer class.
This commit is contained in:
@@ -224,8 +224,8 @@ class Application {
|
||||
}
|
||||
|
||||
// remove any supermaintainers for this application so we don't orphan them
|
||||
$sQuery = "DELETE from appMaintainers WHERE appId='?'";
|
||||
if(!($hResult = query_parameters($sQuery, $this->iAppId)))
|
||||
$hResult = Maintainer::deleteMaintainersForApplication($this);
|
||||
if(!$hResult)
|
||||
{
|
||||
addmsg("Error removing app maintainers for the deleted application!", "red");
|
||||
}
|
||||
@@ -557,7 +557,7 @@ class Application {
|
||||
// Display all supermaintainers maintainers of this application
|
||||
echo " <table class=\"color4\" width=\"250\" border=\"1\">\n";
|
||||
echo " <tr><td align=\"left\"><b>Super maintainers:</b></td></tr>\n";
|
||||
$other_maintainers = getSuperMaintainersUserIdsFromAppId($this->iAppId);
|
||||
$other_maintainers = Maintainer::getSuperMaintainersUserIdsFromAppId($this->iAppId);
|
||||
if($other_maintainers)
|
||||
{
|
||||
echo " <tr><td align=\"left\"><ul>\n";
|
||||
|
||||
Reference in New Issue
Block a user