summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorzach <zach@copley.name>2008-07-22 17:20:56 -0400
committerzach <zach@copley.name>2008-07-22 17:20:56 -0400
commit7e6870db914d4e905fc7ae833b69404fd3ea0d3d (patch)
treed7af767a8733ae3b7731fc178076351b06cf7198 /lib
parent877eb138c4a793cb065e9575e4f31469caf86b36 (diff)
base class is_readonly() now returns false by default
darcs-hash:20080722212056-ca946-e4bd9eef8e3d8991414932e9fc7b8c9a31f818c0.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/action.php2
-rw-r--r--lib/gallery.php4
-rw-r--r--lib/rssaction.php4
-rw-r--r--lib/searchaction.php4
-rw-r--r--lib/settingsaction.php4
-rw-r--r--lib/stream.php4
6 files changed, 17 insertions, 5 deletions
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);
}