Skip to content

Commit 763db2d

Browse files
authored
[6.0] Upmerges - 2025-07-09
Merge pull request #45709 from Bodge-IT/upmerges/2025-07-09
2 parents 2986028 + b47541f commit 763db2d

File tree

14 files changed

+17
-19
lines changed

14 files changed

+17
-19
lines changed

administrator/components/com_installer/src/View/Update/HtmlView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function display($tpl = null)
100100

101101
// Find if there are any updates which require but are missing a Download Key
102102
if (!class_exists('Joomla\Component\Installer\Administrator\Helper\InstallerHelper')) {
103-
require_once JPATH_COMPONENT_ADMINISTRATOR . '/Helper/InstallerHelper.php';
103+
require_once JPATH_ADMINISTRATOR . '/components/com_installer/src/Helper/InstallerHelper.php';
104104
}
105105

106106
$mappingCallback = function ($item) {

administrator/components/com_media/src/View/Media/HtmlView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ protected function prepareToolbar()
106106
$toolbar->divider();
107107

108108
// Add the create folder button
109-
$layout = new FileLayout('toolbar.create-folder', JPATH_COMPONENT_ADMINISTRATOR . '/layouts');
109+
$layout = new FileLayout('toolbar.create-folder', JPATH_ADMINISTRATOR . '/components/com_media/layouts');
110110

111111
$toolbar->customButton('new')
112112
->html($layout->render([]));

api/components/com_config/src/Controller/ApplicationController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function edit()
113113
$data = array_replace($oldData, $data);
114114

115115
// @todo: Not the cleanest thing ever but it works...
116-
Form::addFormPath(JPATH_COMPONENT_ADMINISTRATOR . '/forms');
116+
Form::addFormPath(JPATH_ADMINISTRATOR . '/components/com_config/forms');
117117

118118
// Must load after serving service-requests
119119
$form = $model->getForm();

api/components/com_contact/src/Controller/ContactController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function submitForm($id = null)
126126
// Contact plugins
127127
PluginHelper::importPlugin('contact');
128128

129-
Form::addFormPath(JPATH_COMPONENT_SITE . '/forms');
129+
Form::addFormPath(JPATH_SITE . '/components/com_contact/forms');
130130

131131
// Validate the posted data.
132132
$form = $model->getForm();

api/components/com_languages/src/Controller/OverridesController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ protected function save($recordKey = null)
100100
$data = $this->input->get('data', json_decode($this->input->json->getRaw(), true), 'array');
101101

102102
// @todo: Not the cleanest thing ever but it works...
103-
Form::addFormPath(JPATH_COMPONENT_ADMINISTRATOR . '/forms');
103+
Form::addFormPath(JPATH_ADMINISTRATOR . '/components/com_languages/forms');
104104

105105
// Validate the posted data.
106106
$form = $model->getForm($data, false);

installation/src/Model/ChecksModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public function getForm($view = null)
233233
}
234234

235235
// Get the form.
236-
Form::addFormPath(JPATH_COMPONENT . '/forms');
236+
Form::addFormPath(JPATH_BASE . '/forms');
237237

238238
try {
239239
$form = Form::getInstance('jform', $view, ['control' => 'jform']);

installation/src/Model/LanguagesModel.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -507,9 +507,7 @@ public function getForm($view = null)
507507
}
508508

509509
// Get the form.
510-
Form::addFormPath(JPATH_COMPONENT . '/forms');
511-
Form::addFieldPath(JPATH_COMPONENT . '/model/fields');
512-
Form::addRulePath(JPATH_COMPONENT . '/model/rules');
510+
Form::addFormPath(JPATH_BASE . '/forms');
513511

514512
try {
515513
$form = Form::getInstance('jform', $view, ['control' => 'jform']);

installation/src/Model/SetupModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function getForm($view = null)
8585
}
8686

8787
// Get the form.
88-
Form::addFormPath(JPATH_COMPONENT . '/forms');
88+
Form::addFormPath(JPATH_BASE . '/forms');
8989

9090
try {
9191
$form = Form::getInstance('jform', $view, ['control' => 'jform']);

libraries/src/Dispatcher/ApiDispatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function loadLanguage()
3333
// Load common and local language files.
3434
$this->app->getLanguage()->load($this->option, JPATH_BASE) ||
3535
$this->app->getLanguage()->load($this->option, JPATH_ADMINISTRATOR) ||
36-
$this->app->getLanguage()->load($this->option, JPATH_COMPONENT_ADMINISTRATOR);
36+
$this->app->getLanguage()->load($this->option, JPATH_ADMINISTRATOR . '/components/' . $this->option);
3737
}
3838

3939
/**

libraries/src/Dispatcher/ComponentDispatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected function loadLanguage()
8585
{
8686
// Load common and local language files.
8787
$this->app->getLanguage()->load($this->option, JPATH_BASE) ||
88-
$this->app->getLanguage()->load($this->option, JPATH_COMPONENT);
88+
$this->app->getLanguage()->load($this->option, JPATH_BASE . '/components/' . $this->option);
8989
}
9090

9191
/**

0 commit comments

Comments
 (0)