Source

joomla-flickr / site / controller.php

Diff from to

File site/controller.php

 <?php
 
+defined( '_JEXEC' ) or die( 'Restricted access' );
+
 jimport('joomla.application.component.controller');
 
 class JoomlaFlickrController extends JController
 
 		// Retrieve the current view
 		$document =& JFactory::getDocument();
-		$viewName  = JRequest::getVar( 'view', 'display' );
-		$viewType	= $document->getType();
+		$viewName = JRequest::getWord( 'view', 'display' );
+		$viewType = $document->getType();
 		$view = & $this->getView($viewName, $viewType);
 
 		// Set the correct model for the view
 		$model  = & $this->getModel('joomlaflickr');
-    $view->setModel( $model, true );
+ 		$view->setModel( $model, true );
 
 		// Display the view
 		parent::display();