Move photo deletion from ViewPhoto to EditAsset
Removes the intermediate confirmation page, instead using JavaScript for confirmation. Fixes an XSS issue, in that the previous method was not passing or checking the session (!)
This commit is contained in:
@@ -289,6 +289,16 @@ class Asset
|
||||
return $this->date_captured;
|
||||
}
|
||||
|
||||
public function getDeleteUrl()
|
||||
{
|
||||
return BASEURL . '/editasset/?id=' . $this->id_asset . '&delete';
|
||||
}
|
||||
|
||||
public function getEditUrl()
|
||||
{
|
||||
return BASEURL . '/editasset/?id=' . $this->id_asset;
|
||||
}
|
||||
|
||||
public function getFilename()
|
||||
{
|
||||
return $this->filename;
|
||||
|
||||
Reference in New Issue
Block a user