]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
init() returns boolean success value
authorEvan Prodromou <evan@controlyourself.ca>
Tue, 2 Dec 2008 04:05:49 +0000 (23:05 -0500)
committerEvan Prodromou <evan@controlyourself.ca>
Tue, 2 Dec 2008 04:05:49 +0000 (23:05 -0500)
darcs-hash:20081202040549-5ed1f-b23a6b80b6e1823a97a7b446d9c4e59f8744b904.gz

index.php
lib/action.php

index 7d1eede46236a96c9665dd8d0de591e3fd4847b9..5c16d2fd501495bd09b2d485b66580a51548b804 100644 (file)
--- a/index.php
+++ b/index.php
@@ -52,8 +52,9 @@ if (file_exists($actionfile)) {
                }
                $config['db']['database'] = $mirror;
        }
-    call_user_func(array($action_obj, 'init'), $_REQUEST);
-    call_user_func(array($action_obj, 'handle'), $_REQUEST);
+    if (call_user_func(array($action_obj, 'init'), $_REQUEST)) {
+               call_user_func(array($action_obj, 'handle'), $_REQUEST);
+       }
 } else {
     common_user_error(_('Unknown action'));
 }
\ No newline at end of file
index ba4fc71fb667c71625873a64af43f56405c1899f..895a0d48c48c63ecdda51cb97b320eed68104187 100644 (file)
@@ -30,6 +30,7 @@ class Action { // lawsuit
        
        function init($argarray) {
                $this->args =& common_copy_args($argarray);
+               return true;
        }
 
        # For comparison with If-Last-Modified