Changeset 26358


Ignore:
Timestamp:
06/13/10 23:03:09 (7 years ago)
Author:
indeyets
Message:

do not show page-style in XMLHttpRequests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ragnaroek/midcom/net.nehmer.comments/handler/view.php

    r25294 r26358  
    313313        $this->_prepare_request_data();
    314314        $_MIDCOM->set_26_request_metadata($this->_get_last_modified(), $this->_objectguid);
     315
     316        if ($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest')
     317        {
     318            $_MIDCOM->skip_page_style = true;
     319        }
    315320
    316321        return true;
     
    551556            {
    552557                $this->_display_datamanager->autoset_storage($comment);
    553                 $data['comment'] =& $comment;
     558                $data['comment'] = $comment;
    554559                $data['comment_toolbar'] = $this->_populate_post_toolbar($comment);
    555560                midcom_show_style('comments-item');
Note: See TracChangeset for help on using the changeset viewer.