Skip to content

Commit

Permalink
Merge branch 'staging' of https://github.com/joomla/joomla-cms into s…
Browse files Browse the repository at this point in the history
…taging
  • Loading branch information
brianteeman committed Aug 15, 2016
2 parents 2baa00b + edb70c2 commit 14f5b1c
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 12 deletions.
1 change: 1 addition & 0 deletions administrator/components/com_admin/script.php
Original file line number Diff line number Diff line change
Expand Up @@ -1426,6 +1426,7 @@ public function deleteUnexistingFiles()
'/administrator/templates/isis/js/jquery.js',
'/administrator/templates/isis/js/bootstrap.min.js',
'/media/system/js/permissions.min.js',
'/libraries/platform.php',
);

// TODO There is an issue while deleting folders using the ftp mode
Expand Down
17 changes: 17 additions & 0 deletions libraries/cms/component/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -508,4 +508,21 @@ protected static function load($option)

return true;
}

/**
* Get installed components
*
* @return array The components property
*
* @since __DEPLOY_VERSION__
*/
public static function getComponents()
{
if (empty(static::$components))
{
static::load('*');
}

return static::$components;
}
}
13 changes: 13 additions & 0 deletions libraries/cms/router/site.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,19 @@ public function parse(&$uri)
// Set the route
$uri->setPath(trim($path, '/'));

// Set the parsepreprocess components methods
$components = JComponentHelper::getComponents();

foreach ($components as $component)
{
$componentRouter = $this->getComponentRouter($component->option);

if (method_exists($componentRouter, 'parsepreprocess'))
{
$this->attachParseRule(array($componentRouter, 'parsepreprocess'), static::PROCESS_BEFORE);
}
}

$vars += parent::parse($uri);

return $vars;
Expand Down
6 changes: 0 additions & 6 deletions libraries/import.legacy.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@
define('IS_MAC', (IS_UNIX === true && ($os === 'DAR' || $os === 'MAC')) ? true : false);
}

// Import the platform version library if necessary.
if (!class_exists('JPlatform'))
{
require_once JPATH_PLATFORM . '/platform.php';
}

// Import the library loader if necessary.
if (!class_exists('JLoader'))
{
Expand Down
6 changes: 0 additions & 6 deletions libraries/import.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@
define('IS_UNIX', (IS_WIN === false) ? true : false);
}

// Import the platform version library if necessary.
if (!class_exists('JPlatform'))
{
require_once JPATH_PLATFORM . '/platform.php';
}

// Import the library loader if necessary.
if (!class_exists('JLoader'))
{
Expand Down
File renamed without changes.

0 comments on commit 14f5b1c

Please sign in to comment.