diff options
author | Nathan Kinkade <nkinkade@nkinka.de> | 2011-01-14 01:12:32 +0000 |
---|---|---|
committer | Nathan Kinkade <nkinkade@nkinka.de> | 2011-01-14 01:12:32 +0000 |
commit | 2898fe3b82ce10d045dd2c274a3290bacf209a00 (patch) | |
tree | 5aced91bb92d8c9136cabf60ebc918248328907a /modules/digibug/controllers/digibug.php | |
parent | 47cbef684d41a4d51a9848091997e10b909abf32 (diff) | |
parent | e4a43c99e421c830e569eaae6294286ed51e0ad8 (diff) |
Git pull from devel line.
Diffstat (limited to 'modules/digibug/controllers/digibug.php')
-rw-r--r-- | modules/digibug/controllers/digibug.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/digibug/controllers/digibug.php b/modules/digibug/controllers/digibug.php index bc0c7c5e..c48e3e87 100644 --- a/modules/digibug/controllers/digibug.php +++ b/modules/digibug/controllers/digibug.php @@ -18,6 +18,8 @@ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ class Digibug_Controller extends Controller { + const ALLOW_PRIVATE_GALLERY = true; + public function print_photo($id) { access::verify_csrf(); $item = ORM::factory("item", $id); @@ -112,7 +114,7 @@ class Digibug_Controller extends Controller { private function _clean_expired() { db::build() ->delete("digibug_proxies") - ->where("request_date", "<=", new Database_Expression("(CURDATE() - INTERVAL 10 DAY)")) + ->where("request_date", "<=", db::expr("(CURDATE() - INTERVAL 10 DAY)")) ->limit(20) ->execute(); } |