From 7e6870db914d4e905fc7ae833b69404fd3ea0d3d Mon Sep 17 00:00:00 2001 From: zach Date: Tue, 22 Jul 2008 17:20:56 -0400 Subject: base class is_readonly() now returns false by default darcs-hash:20080722212056-ca946-e4bd9eef8e3d8991414932e9fc7b8c9a31f818c0.gz --- lib/action.php | 2 +- lib/gallery.php | 4 ++++ lib/rssaction.php | 4 ++++ lib/searchaction.php | 4 ++++ lib/settingsaction.php | 4 ---- lib/stream.php | 4 ++++ 6 files changed, 17 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/action.php b/lib/action.php index 1dca596eb..1d3614ae1 100644 --- a/lib/action.php +++ b/lib/action.php @@ -27,7 +27,7 @@ class Action { // lawsuit } function is_readonly() { - return true; + return false; } function arg($key, $def=NULL) { diff --git a/lib/gallery.php b/lib/gallery.php index 4f3c18ff9..c6f1585b4 100644 --- a/lib/gallery.php +++ b/lib/gallery.php @@ -25,6 +25,10 @@ define('AVATARS_PER_PAGE', 80); class GalleryAction extends Action { + function is_readonly() { + return true; + } + function handle($args) { parent::handle($args); $nickname = $this->arg('nickname'); diff --git a/lib/rssaction.php b/lib/rssaction.php index e8a3aca70..76859a876 100644 --- a/lib/rssaction.php +++ b/lib/rssaction.php @@ -25,6 +25,10 @@ class Rss10Action extends Action { # This will contain the details of each feed item's author and be used to generate SIOC data. var $creators = array(); + + function is_readonly() { + return true; + } function handle($args) { parent::handle($args); diff --git a/lib/searchaction.php b/lib/searchaction.php index 729cfe6d4..46779bf7a 100644 --- a/lib/searchaction.php +++ b/lib/searchaction.php @@ -21,6 +21,10 @@ if (!defined('LACONICA')) { exit(1); } class SearchAction extends Action { + function is_readonly() { + return true; + } + function handle($args) { parent::handle($args); $this->show_form(); diff --git a/lib/settingsaction.php b/lib/settingsaction.php index 0e39a7459..a71c9e9bc 100644 --- a/lib/settingsaction.php +++ b/lib/settingsaction.php @@ -21,10 +21,6 @@ if (!defined('LACONICA')) { exit(1); } class SettingsAction extends Action { - function is_readonly() { - return false; - } - function handle($args) { parent::handle($args); if (!common_logged_in()) { diff --git a/lib/stream.php b/lib/stream.php index a595958e4..fefd77a46 100644 --- a/lib/stream.php +++ b/lib/stream.php @@ -21,6 +21,10 @@ if (!defined('LACONICA')) { exit(1); } class StreamAction extends Action { + function is_readonly() { + return true; + } + function handle($args) { parent::handle($args); } -- cgit v1.2.3-54-g00ecf