Dotclear


Ignore:
Timestamp:
03/29/12 14:02:54 (13 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add 2 behaviours, before and after publication of scheduled entries. Closes #1310

File:
1 edited

Legend:

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

    r778 r811  
    13881388           
    13891389          $now = dt::toUTC(time()); 
    1390           $to_change = array(); 
     1390          $to_change = new ArrayObject; 
    13911391           
    13921392          if ($rs->isEmpty()) { 
     
    14101410          if (!empty($to_change)) 
    14111411          { 
     1412               # --BEHAVIOR-- coreBeforeScheduledEntriesPublish 
     1413               $this->core->callBehavior('coreBeforeScheduledEntriesPublish',$this,$to_change); 
     1414 
    14121415               $strReq = 
    14131416               'UPDATE '.$this->prefix.'post SET '. 
     
    14181421               $this->con->execute($strReq); 
    14191422               $this->triggerBlog(); 
    1420           } 
     1423 
     1424               # --BEHAVIOR-- coreAfterScheduledEntriesPublish 
     1425               $this->core->callBehavior('coreAfterScheduledEntriesPublish',$this,$to_change); 
     1426          } 
     1427           
    14211428     } 
    14221429      
Note: See TracChangeset for help on using the changeset viewer.

Sites map