make user email accessable to comment themers
This commit is contained in:
		
							parent
							
								
									f83b8b473e
								
							
						
					
					
						commit
						fa30a08246
					
				@ -30,6 +30,7 @@ class Comment {
 | 
				
			|||||||
	public function Comment($row) {
 | 
						public function Comment($row) {
 | 
				
			||||||
		$this->owner_id = $row['user_id'];
 | 
							$this->owner_id = $row['user_id'];
 | 
				
			||||||
		$this->owner_name = $row['user_name'];
 | 
							$this->owner_name = $row['user_name'];
 | 
				
			||||||
 | 
							$this->owner_email = $row['user_email'];
 | 
				
			||||||
		$this->comment =  $row['comment'];
 | 
							$this->comment =  $row['comment'];
 | 
				
			||||||
		$this->comment_id =  $row['comment_id'];
 | 
							$this->comment_id =  $row['comment_id'];
 | 
				
			||||||
		$this->image_id =  $row['image_id'];
 | 
							$this->image_id =  $row['image_id'];
 | 
				
			||||||
@ -249,7 +250,7 @@ class CommentList extends SimpleExtension {
 | 
				
			|||||||
		global $database;
 | 
							global $database;
 | 
				
			||||||
		$rows = $database->get_all("
 | 
							$rows = $database->get_all("
 | 
				
			||||||
				SELECT
 | 
									SELECT
 | 
				
			||||||
				users.id as user_id, users.name as user_name,
 | 
									users.id as user_id, users.name as user_name, users.email as user_email,
 | 
				
			||||||
				comments.comment as comment, comments.id as comment_id,
 | 
									comments.comment as comment, comments.id as comment_id,
 | 
				
			||||||
				comments.image_id as image_id, comments.owner_ip as poster_ip,
 | 
									comments.image_id as image_id, comments.owner_ip as poster_ip,
 | 
				
			||||||
				comments.posted as posted
 | 
									comments.posted as posted
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user