Dotclear


Ignore:
Timestamp:
05/24/12 09:04:39 (13 years ago)
Author:
Dsls <dsls@…>
Branch:
default
Children:
835:dbc60fa508df, 836:3a54ff018a83
Message:

Small tuning in scheduled entries management,
Updated TemplatePrepareParams? behavior

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.blog.php

    r831 r833  
    672672          $params = new ArrayObject($params); 
    673673          $this->core->callBehavior('coreBlogBeforeGetPosts',$params); 
    674           $params = (array)$params; 
    675674 
    676675          if ($count_only) 
     
    13931392           
    13941393          $now = dt::toUTC(time()); 
    1395           $to_change = array(); 
    1396            
     1394          $to_change = new ArrayObject(); 
     1395 
    13971396          if ($rs->isEmpty()) { 
    13981397               return; 
     
    14121411               } 
    14131412          } 
    1414            
    1415           if (!empty($to_change)) 
     1413          if (count($to_change)) 
    14161414          { 
    14171415               # --BEHAVIOR-- coreBeforeScheduledEntriesPublish 
    1418                $to_change = new ArrayObject($to_change); 
    14191416               $this->core->callBehavior('coreBeforeScheduledEntriesPublish',$this,$to_change); 
    1420                $to_change = (array)$to_change; 
    14211417 
    14221418               $strReq = 
     
    14241420               'post_status = 1 '. 
    14251421               "WHERE blog_id = '".$this->con->escape($this->id)."' ". 
    1426                'AND post_id '.$this->con->in($to_change).' '; 
    1427                 
     1422               'AND post_id '.$this->con->in((array)$to_change).' '; 
    14281423               $this->con->execute($strReq); 
    14291424               $this->triggerBlog(); 
    14301425 
    14311426               # --BEHAVIOR-- coreAfterScheduledEntriesPublish 
    1432                $to_change = new ArrayObject($to_change); 
    14331427               $this->core->callBehavior('coreAfterScheduledEntriesPublish',$this,$to_change); 
    14341428          } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map