git-svn-id: https://192.168.0.254/svn/Proyectos.FundacionLQDVI_WebCongresos/trunk@2 94ccb1af-fd9d-d947-8d90-7f70ea60afc8
33 lines
856 B
PHP
33 lines
856 B
PHP
<?php
|
|
/**
|
|
* @package AkeebaBackup
|
|
* @copyright Copyright (c)2006-2010 Nicholas K. Dionysopoulos
|
|
* @license GNU General Public License version 3, or later
|
|
* @version $Id: view.raw.php 166 2010-06-22 17:35:59Z nikosdion $
|
|
* @since 1.3
|
|
*/
|
|
|
|
// Protect from unauthorized access
|
|
defined('_JEXEC') or die('Restricted Access');
|
|
|
|
// Load framework base classes
|
|
jimport('joomla.application.component.view');
|
|
|
|
class AkeebaViewJson extends JView
|
|
{
|
|
public function display($tpl = null)
|
|
{
|
|
if(function_exists('ob_start')) @ob_start();
|
|
|
|
$sourceJSON = JRequest::getVar('json', null, 'default', 'raw', 2);
|
|
$model =& $this->getModel();
|
|
$json = $model->execute($sourceJSON);
|
|
|
|
$this->assign('json', $json);
|
|
|
|
// # Fix 2.4: Drop the output buffer
|
|
if(function_exists('ob_clean')) @ob_clean();
|
|
parent::display('raw');
|
|
}
|
|
}
|
|
?>
|