Skip to content
Browse files

Merge pull request #617 from realityking/jrequest2

Don't load JRequest when it isn't used.
  • Loading branch information...
2 parents 40f5a06 + 9969c77 commit 1096c6ba99ad71c3544c75b7c7184f5c2b3de157 @eddieajau eddieajau committed Dec 8, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 libraries/import.php
View
3 libraries/import.php
@@ -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');
/*
@@ -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'))

0 comments on commit 1096c6b

Please sign in to comment.
Something went wrong with that request. Please try again.