]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/action.php
add OpenID settings to settings menu
[quix0rs-gnu-social.git] / lib / action.php
index 50370c09feca6086b4b1a68a03f26b9ed174b111..a4cae7066c0e06b34ccf3012d151333498b46993 100644 (file)
@@ -60,4 +60,16 @@ class Action { // lawsuit
                        return $def;
                }
        }
+       
+       function server_error($msg, $code=500) {
+               $action = $this->trimmed('action');
+               common_debug("Server error '$code' on '$action': $msg", __FILE__);
+               common_server_error($msg, $code);
+       }
+       
+       function client_error($msg, $code=400) {
+               $action = $this->trimmed('action');
+               common_debug("User error '$code' on '$action': $msg", __FILE__);
+               common_user_error($msg, $code);
+       }
 }