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:
@@ -40,12 +40,12 @@ if($aClean['iConfirmed'])
|
||||
if($aClean['iSuperMaintainer'])
|
||||
{
|
||||
apidb_header("You have resigned as super maintainer of ".$oApp->sName);
|
||||
$result = $_SESSION['current']->deleteMaintainer($oApp->iAppId, null);
|
||||
$result = Maintainer::deleteMaintainer($_SESSION['current'], $aClean['iAppId'], null);
|
||||
} else
|
||||
{
|
||||
$oVersion = new Version($aClean['iVersionId']);
|
||||
apidb_header("You have resigned as maintainer of ".$oApp->sName." ".$oVersion->sName);
|
||||
$result = $_SESSION['current']->deleteMaintainer($oApp->iAppId, $oVersion->iVersionId);
|
||||
$result = Maintainer::deleteMaintainer($_SESSION['current'], $oApp->iAppId, $oVersion->iVersionId);
|
||||
}
|
||||
/* echo html_frame_start("Removing",400,"",0);
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user