forked from GNUsocial/gnu-social
whitespace changes in action.php
darcs-hash:20081202041532-5ed1f-8c392967eb14d726bc1b761a39c6dce0097879c0.gz
This commit is contained in:
parent
b58eee26e8
commit
cb3862b43e
@ -27,7 +27,7 @@ class Action { // lawsuit
|
|||||||
}
|
}
|
||||||
|
|
||||||
# For initializing members of the class
|
# For initializing members of the class
|
||||||
|
|
||||||
function init($argarray) {
|
function init($argarray) {
|
||||||
$this->args =& common_copy_args($argarray);
|
$this->args =& common_copy_args($argarray);
|
||||||
return true;
|
return true;
|
||||||
@ -35,11 +35,11 @@ class Action { // lawsuit
|
|||||||
|
|
||||||
# For comparison with If-Last-Modified
|
# For comparison with If-Last-Modified
|
||||||
# If not applicable, return NULL
|
# If not applicable, return NULL
|
||||||
|
|
||||||
function last_modified() {
|
function last_modified() {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
function is_readonly() {
|
function is_readonly() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -58,11 +58,11 @@ class Action { // lawsuit
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Note: argarray ignored, since it's now passed in in init()
|
# Note: argarray ignored, since it's now passed in in init()
|
||||||
|
|
||||||
function handle($argarray=NULL) {
|
function handle($argarray=NULL) {
|
||||||
|
|
||||||
$lm = $this->last_modified();
|
$lm = $this->last_modified();
|
||||||
|
|
||||||
if ($lm) {
|
if ($lm) {
|
||||||
header('Last-Modified: ' . date(DATE_RFC822, $lm));
|
header('Last-Modified: ' . date(DATE_RFC822, $lm));
|
||||||
$if_modified_since = $_SERVER['HTTP_IF_MODIFIED_SINCE'];
|
$if_modified_since = $_SERVER['HTTP_IF_MODIFIED_SINCE'];
|
||||||
@ -92,7 +92,7 @@ class Action { // lawsuit
|
|||||||
} else {
|
} else {
|
||||||
return $def;
|
return $def;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function server_error($msg, $code=500) {
|
function server_error($msg, $code=500) {
|
||||||
$action = $this->trimmed('action');
|
$action = $this->trimmed('action');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user