mark a bunch of actions read-only

This commit is contained in:
Robin Millette 2009-01-23 09:15:15 +00:00 committed by Robin Millette
parent 25ff381486
commit 0f6bc2190a
20 changed files with 97 additions and 2 deletions

View File

@ -71,4 +71,9 @@ class AccesstokenAction extends Action
$this->serverError($e->getMessage());
}
}
function isReadOnly()
{
return true;
}
}

View File

@ -123,5 +123,10 @@ class AllrssAction extends Rss10Action
$avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
return $avatar ? $avatar->url : null;
}
function isReadOnly()
{
return true;
}
}

View File

@ -97,5 +97,10 @@ class AvatarbynicknameAction extends Action
}
common_redirect($url, 302);
}
function isReadOnly()
{
return true;
}
}

View File

@ -107,4 +107,9 @@ class DocAction extends Action
{
return ucfirst($this->title);
}
function isReadOnly()
{
return true;
}
}

View File

@ -114,5 +114,10 @@ class FavoritesrssAction extends Rss10Action
{
return null;
}
function isReadOnly()
{
return true;
}
}

View File

@ -508,4 +508,9 @@ class GrouplogoAction extends Action
$nav = new GroupNav($this, $this->group);
$nav->show();
}
function isReadOnly()
{
return true;
}
}

View File

@ -103,5 +103,10 @@ class GroupSearchResults extends GroupList
{
return preg_replace($this->pattern, '<strong>\\1</strong>', htmlspecialchars($text));
}
function isReadOnly()
{
return true;
}
}

View File

@ -54,7 +54,7 @@ class LogoutAction extends Action
*/
function isReadOnly()
{
return true;
return false;
}
/**

View File

@ -73,4 +73,9 @@ class MicrosummaryAction extends Action
print $user->nickname . ': ' . $notice->content;
}
function isReadOnly()
{
return true;
}
}

View File

@ -222,5 +222,10 @@ class NoticesearchAction extends SearchAction
} while ($count);
return $result;
}
function isReadOnly()
{
return true;
}
}

View File

@ -95,4 +95,9 @@ class NoticesearchrssAction extends Rss10Action
{
return null;
}
function isReadOnly()
{
return true;
}
}

View File

@ -83,5 +83,10 @@ class OpensearchAction extends Action
$this->elementEnd('OpenSearchDescription');
common_end_xml();
}
function isReadOnly()
{
return true;
}
}

View File

@ -109,5 +109,10 @@ class PeopleSearchResults extends ProfileList
{
return preg_replace($this->pattern, '<strong>\\1</strong>', htmlspecialchars($text));
}
function isReadOnly()
{
return true;
}
}

View File

@ -102,5 +102,10 @@ class PublicrssAction extends Rss10Action
{
// nop
}
function isReadOnly()
{
return true;
}
}

View File

@ -191,4 +191,9 @@ class RepliesAction extends Action
$this->page, 'replies',
array('nickname' => $this->user->nickname));
}
function isReadOnly()
{
return true;
}
}

View File

@ -82,4 +82,9 @@ class RepliesrssAction extends Rss10Action
$avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
return ($avatar) ? $avatar->url : null;
}
function isReadOnly()
{
return true;
}
}

View File

@ -176,4 +176,9 @@ class ShowmessageAction extends MailboxAction
{
return '';
}
function isReadOnly()
{
return true;
}
}

View File

@ -103,4 +103,9 @@ class SubscribersList extends ProfileList
'nickname' => $this->owner->nickname));
$bf->show();
}
function isReadOnly()
{
return true;
}
}

View File

@ -66,4 +66,9 @@ class TagrssAction extends Rss10Action
'description' => sprintf(_('Microblog tagged with %s'), $tagname));
return $c;
}
function isReadOnly()
{
return true;
}
}

View File

@ -94,5 +94,10 @@ class UserrssAction extends Rss10Action
header('X-SUP-ID: '.$url);
parent::initRss($limit);
}
function isReadOnly()
{
return true;
}
}