Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removed jimport

  • Loading branch information...
commit 735400b43c2c085a86373eb82adf4fda0143dd08 1 parent 3798d1e
Kavith Thiranga Lokuhewage authored
6 libraries/joomla/media/combiner.php
View
@@ -145,9 +145,6 @@ public static function getCombiners()
// Derive the class name from the type.
$class = str_ireplace('.php', '', trim($type));
- // Load the class
- jimport('joomla.media.combiner.' . $class);
-
// If the class doesn't exist we have nothing left to do but look at the next type. We did our best.
if (!class_exists('JMediaCombiner' . ucfirst($class)))
{
@@ -195,9 +192,6 @@ public static function getInstance( $options = array())
// Derive the class name from the type.
$class = 'JMediaCombiner' . ucfirst(strtolower($options['type']));
- // Load the class
- jimport('joomla.media.combiner.' . $class);
-
// If the class still doesn't exist we have nothing left to do but throw an exception. We did our best.
if (!class_exists($class))
{
6 libraries/joomla/media/compressor.php
View
@@ -175,9 +175,6 @@ public static function getCompressors()
// Derive the class name from the type.
$class = str_ireplace('.php', '', trim($type));
- // Load the class
- jimport('joomla.media.compressor.' . $class);
-
// If the class doesn't exist we have nothing left to do but look at the next type. We did our best.
if (!class_exists('JMediaCompressor' . ucfirst($class)))
{
@@ -327,9 +324,6 @@ public static function getInstance($options = array())
// Derive the class name from the type.
$class = 'JMediaCompressor' . ucfirst(strtolower($options['type']));
- // Load the class
- jimport('joomla.media.compressor.' . $class);
-
// If the class still doesn't exist we have nothing left to do but throw an exception. We did our best.
if (!class_exists($class))
{
Please sign in to comment.
Something went wrong with that request. Please try again.