Don't pass titles as part of delete links
This commit is contained in:
committed by
Chris Morgan
parent
abe33cfe7d
commit
6bd6839995
@@ -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>';
|
||||
}
|
||||
|
||||
@@ -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&sAction=delete&bQueued=false&sTitle=Delete%20".version::fullName($this->iVersionId)."&iId=".$this->iVersionId;
|
||||
$url = BASE."objectManager.php?sClass=version&sAction=delete&bQueued=false&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";
|
||||
|
||||
Reference in New Issue
Block a user