Changeset 5270

Show
Ignore:
Timestamp:
04/14/07 22:03:32 (1 year ago)
Author:
ryan
Message:

Lose reference to current_blog.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/app.php

    r5166 r5270  
    401401     */ 
    402402    function create_post() { 
    403         global $current_blog
     403        global $blog_id
    404404        $this->get_accepted_content_type($this->atom_content_types); 
    405405 
     
    418418            $this->auth_required('Sorry, you do not have the right to edit/publish new posts.'); 
    419419 
    420         $blog_ID = (int )$current_blog->blog_id; 
     420        $blog_ID = (int ) $blog_id; 
    421421        $post_status = ($publish) ? 'publish' : 'draft'; 
    422422        $post_author = (int) $user->ID;