Show
Ignore:
Timestamp:
04/07/08 14:52:23 (5 months ago)
Author:
sminnee
Message:

Added better error message for when form methods are left out of allowed_actions

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • modules/sapphire/branches/roa/core/control/HTTPResponse.php

    r55557 r57404  
    7676        function getStatusCode() { 
    7777                return $this->statusCode; 
     78        } 
     79         
     80        /** 
     81         * Returns true if this HTTP response is in error 
     82         */ 
     83        function isError() { 
     84                return $this->statusCode && ($this->statusCode < 200 || $this->statusCode > 399); 
    7885        } 
    7986