Make WordPress Core


Ignore:
Timestamp:
07/15/2008 02:01:08 AM (17 years ago)
Author:
mdawaffe
Message:

crazyhorse: merge with log:trunk@8240:8334

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/crazyhorse/wp-app.php

    r8242 r8335  
    198198        // check to see if AtomPub is enabled
    199199        if( !get_option( 'enable_app' ) )
    200             $this->not_allowed( sprintf( __( 'AtomPub services are disabled on this blog.  An admin user can enable them at %s' ), admin_url('options-writing.php') ) );
     200            $this->forbidden( sprintf( __( 'AtomPub services are disabled on this blog.  An admin user can enable them at %s' ), admin_url('options-writing.php') ) );
    201201
    202202        // dispatch
     
    940940    }
    941941
     942    function forbidden($reason='') {
     943        log_app('Status','403: Forbidden');
     944        header('Content-Type: text/plain');
     945        status_header('403');
     946        echo $reason;
     947        exit;
     948    }
     949
    942950    function not_found() {
    943951        log_app('Status','404: Not Found');
Note: See TracChangeset for help on using the changeset viewer.