Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ public function createUpdateFile($basename = null): bool
$data .= '];';

// Remove the old file, if it's there...
$configpath = JPATH_COMPONENT_ADMINISTRATOR . '/update.php';
$configpath = JPATH_ADMINISTRATOR . '/components/com_joomlaupdate/update.php';

if (is_file($configpath)) {
try {
Expand Down Expand Up @@ -900,8 +900,8 @@ public function cleanUp()
}

// Remove the update.php file used in Joomla 4.0.3 and later.
if (is_file(JPATH_COMPONENT_ADMINISTRATOR . '/update.php')) {
File::delete(JPATH_COMPONENT_ADMINISTRATOR . '/update.php');
if (is_file(JPATH_ADMINISTRATOR . '/components/com_joomlaupdate/update.php')) {
File::delete(JPATH_ADMINISTRATOR . '/components/com_joomlaupdate/update.php');
}

// Remove joomla.xml from the site's root.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ protected function prepareToolbar()
// Add the upload and create folder buttons
if ($user->authorise('core.create', 'com_media')) {
// Add the upload button
$layout = new FileLayout('toolbar.upload', JPATH_COMPONENT_ADMINISTRATOR . '/layouts');
$layout = new FileLayout('toolbar.upload', JPATH_ADMINISTRATOR . '/components/com_media/layouts');

$toolbar->customButton('upload')
->html($layout->render([]));
Expand All @@ -116,7 +116,7 @@ protected function prepareToolbar()
// Add a delete button
if ($user->authorise('core.delete', 'com_media')) {
// Instantiate a new FileLayout instance and render the layout
$layout = new FileLayout('toolbar.delete', JPATH_COMPONENT_ADMINISTRATOR . '/layouts');
$layout = new FileLayout('toolbar.delete', JPATH_ADMINISTRATOR . '/components/com_media/layouts');

$toolbar->customButton('delete')
->html($layout->render([]));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function __construct($config = [], ?MVCFactoryInterface $factory = null,
$input = Factory::getApplication()->getInput();

if ($input->get('view') === 'contacts' && $input->get('layout') === 'modal') {
$config['base_path'] = JPATH_COMPONENT_ADMINISTRATOR;
$config['base_path'] = JPATH_ADMINISTRATOR . '/components/com_contact';
}

parent::__construct($config, $factory, $app, $input);
Expand Down
4 changes: 2 additions & 2 deletions components/com_content/src/Controller/DisplayController.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ public function __construct($config = [], ?MVCFactoryInterface $factory = null,

// Article frontpage Editor pagebreak proxying:
if ($this->input->get('view') === 'article' && $this->input->get('layout') === 'pagebreak') {
$config['base_path'] = JPATH_COMPONENT_ADMINISTRATOR;
$config['base_path'] = JPATH_ADMINISTRATOR . '/components/com_content';
} elseif ($this->input->get('view') === 'articles' && $this->input->get('layout') === 'modal') {
// Article frontpage Editor article proxying:
$config['base_path'] = JPATH_COMPONENT_ADMINISTRATOR;
$config['base_path'] = JPATH_ADMINISTRATOR . '/components/com_content';
}

parent::__construct($config, $factory, $app, $input);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class DisplayController extends BaseController
*/
public function __construct($config = [], ?MVCFactoryInterface $factory = null, $app = null, $input = null)
{
$config['base_path'] = JPATH_COMPONENT_ADMINISTRATOR;
$config['base_path'] = JPATH_ADMINISTRATOR . '/components/com_contenthistory';

parent::__construct($config, $factory, $app, $input);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected function checkAccess()
*/
public function getController(string $name, string $client = '', array $config = []): BaseController
{
$config['base_path'] = JPATH_COMPONENT_ADMINISTRATOR;
$config['base_path'] = JPATH_ADMINISTRATOR . '/components/com_contenthistory';
$client = 'Administrator';

return parent::getController($name, $client, $config);
Expand Down
2 changes: 1 addition & 1 deletion components/com_fields/src/Controller/DisplayController.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __construct($config = [], ?MVCFactoryInterface $factory = null,
// Load the backend language file.
$app->getLanguage()->load('com_fields', JPATH_ADMINISTRATOR);

$config['base_path'] = JPATH_COMPONENT_ADMINISTRATOR;
$config['base_path'] = JPATH_ADMINISTRATOR . '/components/com_fields';
}

parent::__construct($config, $factory, $app, $input);
Expand Down
2 changes: 1 addition & 1 deletion components/com_menus/src/Dispatcher/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function checkAccess()
*/
public function getController(string $name, string $client = '', array $config = []): BaseController
{
$config['base_path'] = JPATH_COMPONENT_ADMINISTRATOR;
$config['base_path'] = JPATH_ADMINISTRATOR . '/components/com_menus';
$client = 'Administrator';

return parent::getController($name, $client, $config);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct($config = [], ?MVCFactoryInterface $factory = null,

// Modules frontpage Editor Module proxying.
if ($this->input->get('view') === 'modules' && $this->input->get('layout') === 'modal') {
$config['base_path'] = JPATH_COMPONENT_ADMINISTRATOR;
$config['base_path'] = JPATH_ADMINISTRATOR . '/components/com_modules';
}

parent::__construct($config, $factory, $app, $input);
Expand Down
2 changes: 1 addition & 1 deletion components/com_modules/src/Dispatcher/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function checkAccess()
public function getController(string $name, string $client = '', array $config = []): BaseController
{
if ($this->input->get('task') === 'orderPosition') {
$config['base_path'] = JPATH_COMPONENT_ADMINISTRATOR;
$config['base_path'] = JPATH_ADMINISTRATOR . '/components/com_modules';
$client = 'Administrator';
}

Expand Down