~ubuntu-branches/ubuntu/maverick/mahara/maverick-updates

« back to all changes in this revision

Viewing changes to htdocs/lib/errors.php

  • Committer: Bazaar Package Importer
  • Author(s): Francois Marier
  • Date: 2008-09-29 13:00:12 UTC
  • mfrom: (1.1.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20080929130012-7swv3jiomgpsm4b8
Tags: 1.0.5-1
* New Upstream Version
* Fix comments in maintainer scripts (closes: #491924)
* Add lintian override for embedded copies of mochikit
* Bump debhelper compatibility to 7 to use dh_lintian

Show diffs side-by-side

added added

removed removed

Lines of Context:
775
775
    }
776
776
}
777
777
 
 
778
/**
 
779
 * Exception - Access totally denied, the user won't be able to access it even if they log in 
 
780
 * as the administrator
 
781
 */
 
782
class AccessTotallyDeniedException extends UserException {
 
783
    public function strings() {
 
784
        return array_merge(parent::strings(), 
 
785
                           array('message' => get_string('accessdeniedexception', 'error'),
 
786
                                 'title'   => get_string('accessdenied', 'error')));
 
787
    }
 
788
 
 
789
    public function render_exception() {
 
790
        header("HTTP/1.0 403 Forbidden", true);
 
791
        return parent::render_exception();
 
792
    }
 
793
}
 
794
 
778
795
 
779
796
?>