X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=actions%2Ffile.php;h=10c59a96122aa267c2e5c951af8c77235c46cff8;hb=0799f48197c67dbbbd1b613f1fc9c66d9250f2ae;hp=271f57ab9634aeaa4a6d675d30ac46a2849f30c8;hpb=612a107e09619b92d4614e2f3076ddca5c65824c;p=quix0rs-gnu-social.git diff --git a/actions/file.php b/actions/file.php index 271f57ab96..10c59a9612 100644 --- a/actions/file.php +++ b/actions/file.php @@ -1,7 +1,7 @@ . */ -if (!defined('LACONICA')) { exit(1); } +if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } require_once(INSTALLDIR.'/actions/shownotice.php'); @@ -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; + } + }