Changeset 363

Show
Ignore:
Timestamp:
05/23/06 23:54:49 (3 years ago)
Author:
sven
Message:

watchlist bug: damn it, I was just in the middle of fixing that! :)
schema: shortening tags.tagtype field

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/lib/db/mysql.php

    r360 r363  
    293293    } 
    294294 
     295    if ($oldversion < 2006052300) { 
     296        // shorten another keyword field 
     297        execute_sql("ALTER TABLE `{$CFG->prefix}tags` CHANGE `tagtype` `tagtype` VARCHAR(20) NOT NULL DEFAULT '' ;",false); 
     298    } 
     299 
    295300    return $result;  
    296301} 
  • devel/units/weblogs/weblogs_actions.php

    r362 r363  
    115115             if ($post = get_record_select('weblog_posts','('.$where.') AND ident = '.$comment->post_id)) { 
    116116                 if (run("spam:check",$comment->body) != true) { 
    117                      $comment->owner = $USER->ident; 
    118                      $comment->posted = time(); 
    119117                     // If we're logged on or comments are public, add one 
    120118                     if (logged_on || run("users:flags:get",array("publiccomments",$post->owner))) { 
     119                         $comment->owner = $USER->ident; 
     120                         $comment->posted = time(); 
    121121                         insert_record('weblog_comments',$comment); 
    122122 
    123                          // If we're logged on and not the owner of this comment, add this to our watchlist 
    124                          if (logged_on && $owner != $post->owner) { 
     123                         // If we're logged on and not the owner of this post, add post to our watchlist 
     124                         if (logged_on && $comment->owner != $post->owner) { 
    125125                             delete_records('weblog_watchlist','weblog_post',$comment->post_id,'owner',$comment->owner); 
    126126                             $wl = new StdClass; 
    127                              $wl->owner = $owner; 
     127                             $wl->owner = $comment->owner; 
    128128                             $wl->weblog_post = $comment->post_id; 
    129129                             insert_record('weblog_watchlist',$wl); 
  • devel/version.php

    r360 r363  
    77// whether upgrades should be performed (see lib/db/*.php) 
    88 
    9    $version = 2006052200;  // YYYYMMDD   = Elgg Date 
     9   $version = 2006052300;  // YYYYMMDD   = Elgg Date 
    1010                           //         X  = Elgg Point release (0,1,2...) 
    1111                           //          Y = Interim incrementer