From 038f762bce95323ac929b0635cceb7f9425527ec Mon Sep 17 00:00:00 2001 From: zach Date: Tue, 22 Jul 2008 13:15:01 -0400 Subject: Added is_readonly() method to all Actions darcs-hash:20080722171501-ca946-160bad6c4f80be2b3b105ea9b913f1c0f9edb0ef.gz --- lib/action.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/action.php') diff --git a/lib/action.php b/lib/action.php index 5f4526166..1dca596eb 100644 --- a/lib/action.php +++ b/lib/action.php @@ -26,6 +26,10 @@ class Action { // lawsuit function Action() { } + function is_readonly() { + return true; + } + function arg($key, $def=NULL) { if (array_key_exists($key, $this->args)) { return $this->args[$key]; @@ -55,7 +59,7 @@ class Action { // lawsuit } else { return $def; } - } + } function server_error($msg, $code=500) { $action = $this->trimmed('action'); -- cgit v1.2.3-54-g00ecf