misc fixes
git-svn-id: file:///home/shish/svn/shimmie2/trunk@35 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
		
							parent
							
								
									48f5df95ec
								
							
						
					
					
						commit
						26997b1b59
					
				| @ -122,11 +122,11 @@ class CommentList extends Extension { | |||||||
| 			$event->panel->add_main_block($sb); | 			$event->panel->add_main_block($sb); | ||||||
| 		} | 		} | ||||||
| 		if(is_a($event, 'ConfigSaveEvent')) { | 		if(is_a($event, 'ConfigSaveEvent')) { | ||||||
| 			$event->config->set_bool("comment_anon", $_POST['comment_anon']); | 			$event->config->set_bool_from_post("comment_anon"); | ||||||
| 			$event->config->set_int("comment_limit", $_POST['comment_limit']); | 			$event->config->set_int_from_post("comment_limit"); | ||||||
| 			$event->config->set_int("comment_window", $_POST['comment_window']); | 			$event->config->set_int_from_post("comment_window"); | ||||||
| 			$event->config->set_int("comment_count", $_POST['comment_count']); | 			$event->config->set_int_from_post("comment_count"); | ||||||
| 			$event->config->set_string("comment_wordpress_key", $_POST['comment_wordpress_key']); | 			$event->config->set_string_from_post("comment_wordpress_key"); | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| // }}}
 | // }}}
 | ||||||
| @ -335,6 +335,7 @@ class CommentList extends Extension { | |||||||
| 
 | 
 | ||||||
| 	private function can_comment() { | 	private function can_comment() { | ||||||
| 		global $config; | 		global $config; | ||||||
|  | 		global $user; | ||||||
| 		return ($config->get_bool('comment_anon') || !$user->is_anonymous()); | 		return ($config->get_bool('comment_anon') || !$user->is_anonymous()); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user