Dotclear


Ignore:
Timestamp:
11/17/13 20:25:53 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.6
Children:
2567:6c11245cbf04, 2568:61c67a7d17fa
Message:

Add some people in CREDITS, remove trailing spaces and tabs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/pages/class.actionpage.php

    r2256 r2566  
    3030          ); 
    3131          $this->endPage(); 
    32      }     
     32     } 
    3333     public function beginPage($breadcrumb='',$head='') { 
    3434          echo '<html><head><title>'.__('Pages').'</title>'. 
     
    4040 
    4141     } 
    42       
     42 
    4343     public function endPage() { 
    4444          echo '</body></html>'; 
     
    5858          return parent::process(); 
    5959     } 
    60       
     60 
    6161     public static function doReorderPages($core, dcPostsActionsPage $ap, $post) { 
    6262          foreach($post['order'] as $post_id => $value) { 
    6363               if (!$core->auth->check('publish,contentadmin',$core->blog->id)) 
    6464                    throw new Exception(__('You are not allowed to change this entry status')); 
    65                 
     65 
    6666               $strReq = "WHERE blog_id = '".$core->con->escape($core->blog->id)."' ". 
    6767                         "AND post_id ".$core->con->in($post_id); 
    68                 
     68 
    6969               #If user can only publish, we need to check the post's owner 
    7070               if (!$core->auth->check('contentadmin',$core->blog->id)) 
    7171                    $strReq .= "AND user_id = '".$core->con->escape($core->auth->userID())."' "; 
    72                 
     72 
    7373               $cur = $core->con->openCursor($core->prefix.'post'); 
    74                 
     74 
    7575               $cur->post_position = (integer) $value-1; 
    7676               $cur->post_upddt = date('Y-m-d H:i:s'); 
    77                 
     77 
    7878               $cur->update($strReq); 
    7979               $core->blog->triggerBlog(); 
    80                 
     80 
    8181          } 
    82            
     82 
    8383          dcPage::addSuccessNotice(__('Selected pages have been successfully reordered.')); 
    8484          $ap->redirect(false); 
    85      }     
     85     } 
    8686} 
    8787 
    88 class DefaultPagesActions  
     88class DefaultPagesActions 
    8989{ 
    9090     public static function adminPagesActionsPage($core, $ap) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map