X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=propel%2Fbuild%2Fclasses%2FReadifoodObject.php;h=6ea785b5316c985e099e38ae899646ee6c6972f2;hb=7e79094af6491632cec5287d4a0471ab4d227726;hp=99932395ef6f53beea811273720689942a7a3edf;hpb=ab38fc2f4799078f99fd89629979192a56ebb900;p=readifood.git diff --git a/propel/build/classes/ReadifoodObject.php b/propel/build/classes/ReadifoodObject.php index 9993239..6ea785b 100644 --- a/propel/build/classes/ReadifoodObject.php +++ b/propel/build/classes/ReadifoodObject.php @@ -22,8 +22,9 @@ return $this->getLink($blurb, sprintf("%s/%s", $this->getURL(), urlencode($action)), array_unique(array_merge($classes, array("small")))); } - function getDeleteLink() { - return $this->getActionLink("delete", "Delete", array("delete", "noprint")); + function getDeleteLink($confirm = false) { + $link = ($confirm) ? "confirmdelete" : "delete"; + return $this->getActionLink($link, "Delete", array("delete", "noprint")); } }