]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added readonly flag to FileAction just in case
authorZach Copley <zach@controlyourself.ca>
Sat, 27 Jun 2009 01:31:24 +0000 (18:31 -0700)
committerZach Copley <zach@controlyourself.ca>
Sat, 27 Jun 2009 01:31:24 +0000 (18:31 -0700)
actions/file.php

index 271f57ab9634aeaa4a6d675d30ac46a2849f30c8..8310e48df1565431f1ba23f5a4455af455c73c1c 100644 (file)
@@ -56,5 +56,17 @@ class FileAction extends Action
     function handle() {
         common_redirect($this->filerec->url);
     }
+
+    /**
+     * Is this action read-only?
+     *
+     * @return boolean true
+     */
+
+    function isReadOnly($args)
+    {
+        return true;
+    }
+
 }