Dotclear

Changeset 2067:5f3282a11316


Ignore:
Timestamp:
09/24/13 19:07:41 (12 years ago)
Author:
Dsls
Branch:
default
Children:
2068:7e104be982a3, 2069:8c8ad1be0ea2
Message:

updated legacy for comments, now works with post.php

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/post.php

    r2064 r2067  
    142142     } 
    143143} 
     144if (isset($_REQUEST['section']) && $_REQUEST['section']=='trackbacks') { 
     145     $anchor = 'trackbacks'; 
     146} else { 
     147     $anchor = 'comments'; 
     148}     
     149$comments_actions_page = new dcCommentsActionsPage($core,'post.php',array('id' => $post_id, '_ANCHOR'=>$anchor)); 
     150 
     151if ($comments_actions_page->process()) { 
     152     return; 
     153} 
    144154 
    145155# Ping blogs 
     
    358368} 
    359369 
    360 if (isset($_REQUEST['section']) && $_REQUEST['section']=='trackbacks') { 
    361      $anchor = 'trackbacks'; 
    362 } else { 
    363      $anchor = 'comments'; 
    364 }     
    365 $comments_actions_page = new dcCommentsActionsPage($core,'post.php',array('id' => $post_id, '_ANCHOR'=>$anchor)); 
    366  
    367 if ($comments_actions_page->process()) { 
    368      return; 
    369 } 
    370370 
    371371dcPage::open($page_title.' - '.__('Entries'), 
  • plugins/dclegacy/_admin.php

    r2061 r2067  
    6565               dcPage::jsMetaEditor(). 
    6666               $core->callBehavior('adminCommentsActionsHeaders'),''); 
     67          ob_start(); 
    6768          $core->callBehavior('adminCommentsActionsContent',$core,$as->getAction(),$as->getHiddenFields(true)); 
     69          $res = ob_get_contents(); 
     70          ob_end_clean(); 
     71          $res = str_replace("comments_actions.php",$as->getURI(),$res); 
     72          echo $res;           
    6873          $as->endPage(); 
    6974      
Note: See TracChangeset for help on using the changeset viewer.

Sites map