Dotclear

Changeset 1618


Ignore:
Timestamp:
10/21/09 21:04:23 (14 years ago)
Author:
JcDenis
Message:

cinecturlink 0.2:

  • Fixed cat_id in admin
  • Added trigger to update public side
Location:
plugins/cinecturlink2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • plugins/cinecturlink2/_define.php

    r1592 r1618  
    2323     /* Description*/         "Widget about books, musics, films, blogs you are interest in", 
    2424     /* Author */        "JC Denis", 
    25      /* Version */       '0.1', 
     25     /* Version */       '0.2', 
    2626     /* Permissions */        'content' 
    2727); 
    28      /* date */          #20091019 
     28     /* date */          #20091021 
    2929?> 
  • plugins/cinecturlink2/inc/class.cinecturlink2.php

    r1592 r1618  
    144144               throw $e; 
    145145          } 
    146           //$this->core->triggerBlog(); 
     146          $this->trigger(); 
    147147          return $cur->link_id; 
    148148     } 
     
    159159 
    160160          $cur->update("WHERE link_id = ".$id." AND blog_id = '".$this->blog."' "); 
    161           //$this->core->triggerBlog(); 
     161          $this->trigger(); 
    162162     } 
    163163 
     
    176176          ); 
    177177 
    178           //$this->core->triggerBlog(); 
     178          $this->trigger(); 
    179179     } 
    180180      
     
    286286               throw $e; 
    287287          } 
    288           //$this->core->triggerBlog(); 
     288          $this->trigger(); 
    289289          return $cur->cat_id; 
    290290     } 
     
    301301 
    302302          $cur->update("WHERE cat_id = ".$id." AND blog_id = '".$this->blog."' "); 
    303           //$this->core->triggerBlog(); 
     303          $this->trigger(); 
    304304     } 
    305305 
     
    324324          $cur->update("WHERE cat_id = ".$id." AND blog_id = '".$this->blog."' "); 
    325325 
    326           //$this->core->triggerBlog(); 
     326          $this->trigger(); 
    327327     } 
    328328      
     
    353353 
    354354          $cat_id = is_int($cat_id) ? $cat_id : $cur->cat_id; 
     355     } 
     356 
     357     private function trigger() 
     358     { 
     359          $this->core->blog->triggerBlog(); 
    355360     } 
    356361      
  • plugins/cinecturlink2/index.php

    r1592 r1618  
    616616          $new_author = $upd_rs->link_author; 
    617617          $new_url = $upd_rs->link_url; 
    618           $new_category = $upd_rs->link_category; 
     618          $new_category = $upd_rs->cat_id; 
    619619          $new_lang = $upd_rs->link_lang; 
    620620          $new_image = $upd_rs->link_img; 
  • plugins/cinecturlink2/release.txt

    r1592 r1618  
     10.2 20091021 
     2 * Fixed cat_id in admin 
     3 * Added trigger to update public side 
     4 
    150.1 20091019 
    26 * First lab release 
Note: See TracChangeset for help on using the changeset viewer.

Sites map