Changeset 363
- Timestamp:
- 05/23/06 23:54:49 (3 years ago)
- Files:
-
- devel/lib/db/mysql.php (modified) (1 diff)
- devel/units/weblogs/weblogs_actions.php (modified) (1 diff)
- devel/version.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/lib/db/mysql.php
r360 r363 293 293 } 294 294 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 295 300 return $result; 296 301 } devel/units/weblogs/weblogs_actions.php
r362 r363 115 115 if ($post = get_record_select('weblog_posts','('.$where.') AND ident = '.$comment->post_id)) { 116 116 if (run("spam:check",$comment->body) != true) { 117 $comment->owner = $USER->ident;118 $comment->posted = time();119 117 // If we're logged on or comments are public, add one 120 118 if (logged_on || run("users:flags:get",array("publiccomments",$post->owner))) { 119 $comment->owner = $USER->ident; 120 $comment->posted = time(); 121 121 insert_record('weblog_comments',$comment); 122 122 123 // If we're logged on and not the owner of this comment, add thisto our watchlist124 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) { 125 125 delete_records('weblog_watchlist','weblog_post',$comment->post_id,'owner',$comment->owner); 126 126 $wl = new StdClass; 127 $wl->owner = $ owner;127 $wl->owner = $comment->owner; 128 128 $wl->weblog_post = $comment->post_id; 129 129 insert_record('weblog_watchlist',$wl); devel/version.php
r360 r363 7 7 // whether upgrades should be performed (see lib/db/*.php) 8 8 9 $version = 2006052 200; // YYYYMMDD = Elgg Date9 $version = 2006052300; // YYYYMMDD = Elgg Date 10 10 // X = Elgg Point release (0,1,2...) 11 11 // Y = Interim incrementer
