Changeset 2296

Show
Ignore:
Timestamp:
12/13/10 11:33:52 (18 months ago)
Author:
nick_ramsay
Message:

[1.5] Removed use of TagFunctions class as per ticket #8 on Hotaru Extensions.

Location:
branches/1.5/libs
Files:
1 removed
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.5/libs/Post.php

    r2168 r2296  
    169169                        $h->db->query($h->db->prepare($sql, $date, $last_insert_id)); 
    170170                } 
    171                  
    172                 // Add tags to the Tags table: 
    173                 require_once(LIBS . 'Tags.php'); 
    174                 $tags = new TagFunctions(); 
    175                 $tags->addTags($h, $this->id, $this->tags); 
    176                  
     171 
    177172                $h->pluginHook('post_add_post'); 
    178173                 
     
    203198                $h->post->id = $this->id; // a small hack to get the id for use in plugins. 
    204199                 
    205                 // Update tags in the Tags table:                
    206                 $tags = new TagFunctions(); 
    207                 $tags->deleteTags($h, $this->id); // delete existing tags 
    208                 $tags->addTags($h, $this->id, $this->tags); // insert new or updated tags 
    209                  
    210200                $h->pluginHook('post_update_post'); 
    211201                 
     
    218208         * 
    219209         * There's a plugin hook in here to delete their parts, e.g. votes, coments, tags, etc. 
    220          */     
     210         */ 
    221211        public function deletePost($h) 
    222212        { 
     
    227217                 
    228218                $h->post->id = $this->id; // a small hack to get the id for use in plugins. 
    229                  
    230                 // Delete tags from the Tags table: 
    231                 require_once(LIBS . 'Tags.php'); 
    232                 $tags = new TagFunctions(); 
    233                 $tags->deleteTags($h, $this->id); // delete existing tags 
    234219                 
    235220                $h->pluginHook('post_delete_post');