Don't pass titles as part of delete links

This commit is contained in:
Alexander Nicolaysen Sørnes
2008-06-03 12:19:17 +02:00
committed by Chris Morgan
parent abe33cfe7d
commit 6bd6839995
2 changed files with 6 additions and 2 deletions

View File

@@ -719,6 +719,8 @@ class Application {
{
switch($sAction)
{
case 'delete':
return 'Delete '.$this->sName;
case "view":
return $this->sName;
@@ -821,7 +823,7 @@ class Application {
}
if($_SESSION['current']->hasPriv("admin"))
{
$url = BASE."objectManager.php?sClass=application&bIsQueue=false&sAction=delete&sTitle=Delete%20".$this->sName."&iId=".$this->iAppId;
$url = BASE."objectManager.php?sClass=application&bIsQueue=false&sAction=delete&iId=".$this->iAppId;
echo " <form method=\"post\" name=\"sEdit\" action=\"javascript:self.location = '".$url."'\"><input type=\"submit\" value=\"Delete App\" class=\"button\"></form>";
echo ' <form method="post" name="sEdit" action="admin/editBundle.php"><input type="hidden" name="iBundleId" value="'.$this->iAppId.'"><input type="submit" value="Edit Bundle" class="button"></form>';
}