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>';
}

View File

@@ -745,6 +745,8 @@ class version {
{
switch($sAction)
{
case 'delete':
return 'Delete '.version::fullName($this->iVersionId);
case "view":
return version::fullName($this->iVersionId);
@@ -971,7 +973,7 @@ class version {
echo "\t".'<input type="hidden" name="iVersionId" value="'.$this->iVersionId.'">'."\n";
echo "\t".'<input type=submit value="Edit Version" class="button">'."\n";
echo '</form>'."\n";
$url = BASE."objectManager.php?sClass=version&amp;sAction=delete&amp;bQueued=false&amp;sTitle=Delete%20".version::fullName($this->iVersionId)."&amp;iId=".$this->iVersionId;
$url = BASE."objectManager.php?sClass=version&amp;sAction=delete&amp;bQueued=false&amp;iId=".$this->iVersionId;
echo "<form method=\"post\" name=\"sDelete\" action=\"javascript:self.location = '".$url."'\">\n";
echo "\t".'<input type=submit value="Delete Version" class="button">'."\n";
echo '</form>'."\n";