Skip to content
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.

Commit

Permalink
Merge pull request #617 from realityking/jrequest2
Browse files Browse the repository at this point in the history
Don't load JRequest when it isn't used.
  • Loading branch information
eddieajau committed Dec 9, 2011
2 parents 40f5a06 + 9969c77 commit 1096c6b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libraries/import.php
Expand Up @@ -58,7 +58,6 @@ class_exists('JLoader') or die;
JLoader::import('joomla.factory');

// Import the exception and error handling libraries.
JLoader::import('joomla.error.error');
JLoader::import('joomla.error.exception');

/*
Expand All @@ -67,7 +66,7 @@ class_exists('JLoader') or die;
*/
if (isset($_SERVER['HTTP_HOST']))
{
JLoader::import('joomla.environment.request');
JLoader::register('JRequest', JPATH_PLATFORM . '/joomla/environment/request.php');

// If an application flags it doesn't want this, adhere to that.
if (!defined('_JREQUEST_NO_CLEAN') && (bool) ini_get('register_globals'))
Expand Down

0 comments on commit 1096c6b

Please sign in to comment.