X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;ds=sidebyside;f=propel%2Fbuild%2Fclasses%2FReadifoodObject.php;fp=propel%2Fbuild%2Fclasses%2FReadifoodObject.php;h=6ea785b5316c985e099e38ae899646ee6c6972f2;hb=37d4290c9eae09546c22b257c589c7e66ad3a1f3;hp=99932395ef6f53beea811273720689942a7a3edf;hpb=0925aeead950582ca1136feeb597730086bec498;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")); } }