forked from Public/pics
		
	Correct JSON media type.
This commit is contained in:
		
							parent
							
								
									c48ba786c1
								
							
						
					
					
						commit
						62900e7f81
					
				@ -3,19 +3,16 @@
 | 
				
			|||||||
 * JSONController.php
 | 
					 * JSONController.php
 | 
				
			||||||
 * Contains the key JSON controller
 | 
					 * Contains the key JSON controller
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * Kabuki CMS (C) 2013-2015, Aaron van Geffen
 | 
					 * Kabuki CMS (C) 2013-2019, Aaron van Geffen
 | 
				
			||||||
 *****************************************************************************/
 | 
					 *****************************************************************************/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 * The abstract class that allows easy creation of json replies.
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
class JSONController
 | 
					class JSONController
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	protected $payload;
 | 
						protected $payload;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	public function showContent()
 | 
						public function showContent()
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		header('Content-Type: text/json; charset=utf-8');
 | 
							header('Content-Type: application/json; charset=utf-8');
 | 
				
			||||||
		echo json_encode($this->payload);
 | 
							echo json_encode($this->payload);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user