Dotclear


Ignore:
Timestamp:
09/23/13 23:40:40 (12 years ago)
Author:
Dsls
Branch:
default
Message:

exit is a bit rough and not really ob_start compliand, made it smoother for plugins; Tuned pages plugin so that it works ... now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/pages/list.php

    r2036 r2048  
    155155     } 
    156156      
    157      public function beginPage($breadcrumb='',$header='') { 
     157     public function beginPage($breadcrumb='',$head='') { 
    158158          echo '<html><head><title>'.__('Pages').'</title>'. 
    159                dcPage::jsLoad('index.php?pf=pages/list.js'). 
    160                # --BEHAVIOR-- adminBeforePostDelete 
    161                $core->callBehavior('adminPagesActionsHeaders'). 
     159               dcPage::jsLoad('js/_posts_actions.js'). 
    162160               '<script type="text/javascript">'. 
    163161               '//<![CDATA['. 
    164162               dcPage::jsVar('dotclear.msg.confirm_delete_posts',__("Are you sure you want to delete selected pages?")). 
    165163               '//]]>'. 
     164               $head. 
    166165               '</script></head><body>'; 
     166               '</head><body>'.$breadcrumb; 
    167167     } 
    168168      
     
    182182               $this->from['action']='reorder'; 
    183183          } 
    184           parent::process(); 
     184          $this->from['post_type']='page'; 
     185          return parent::process(); 
    185186     } 
    186187      
     
    214215$pages_actions_page = new dcPagesActionsPage($core,'plugin.php',array('p'=>'pages')); 
    215216 
    216 $pages_actions_page->process(); 
     217if (!$pages_actions_page->process()) { 
    217218 
    218219 
     
    271272     form::hidden(array('post_type'),'page'). 
    272273     form::hidden(array('p'),'pages'). 
     274     form::hidden(array('act'),'list'). 
    273275     '</div>'. 
    274276     $core->formNonce(). 
     
    284286</body> 
    285287</html> 
     288<?php 
     289} 
     290?> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map