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 @@ -142,7 +142,7 @@ protected function addToolbar()
$toolbar = $this->getDocument()->getToolbar();

// Add a shortcut to the styles list view.
$toolbar->linkButton('', 'COM_TEMPLATES_MANAGER_STYLES_BUTTON')
$toolbar->linkButton('styles', 'COM_TEMPLATES_MANAGER_STYLES_BUTTON')
->url('index.php?option=com_templates&view=styles&client_id=' . $clientId)
->icon('icon-brush thememanager');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public function isBackupCode($code, ?User $user = null): bool
*/
$otherResult = false;

$temp1 = '';
$temp1 = [];

for ($i = 0; $i < 10; $i++) {
$temp1[$i] = random_int(0, 99999999);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ public function checkTryLimit(MfaTable $method)
$maxTries = (int) $params->get('mfatrycount', 10);
$blockHours = (int) $params->get('mfatrytime', 1);

$lastTryTime = strtotime($method->last_try) ?: 0;
$lastTryTime = $method->last_try !== null ? strtotime($method->last_try) : 0;
$hoursSinceLastTry = (strtotime(Factory::getDate()->toSql()) - $lastTryTime) / 3600;

if ($method->last_try !== null && $hoursSinceLastTry > $blockHours) {
Expand Down
18 changes: 9 additions & 9 deletions build/build-modules-js/javascript/build-bootstrap-js.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
} from 'node:fs/promises';
import { resolve } from 'node:path';
import { transform } from 'esbuild';
import rimraf from 'rimraf';
import { rimrafSync } from 'rimraf';
import { rollup } from 'rollup';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import replace from '@rollup/plugin-replace';
Expand Down Expand Up @@ -65,6 +65,13 @@ const build = async () => {
],
}),
],
});

await bundle.write({
format: 'es',
sourcemap: false,
dir: outputFolder,
chunkFileNames: '[name].js',
manualChunks: {
alert: ['build/media_source/vendor/bootstrap/js/alert.es6.js'],
button: ['build/media_source/vendor/bootstrap/js/button.es6.js'],
Expand All @@ -86,19 +93,12 @@ const build = async () => {
},
});

await bundle.write({
format: 'es',
sourcemap: false,
dir: outputFolder,
chunkFileNames: '[name].js',
});

// closes the bundle
await bundle.close();
};

export const bootstrapJs = async () => {
rimraf.sync(resolve(outputFolder));
rimrafSync(resolve(outputFolder));

try {
await build(resolve(inputFolder, 'index.es6.js'));
Expand Down
2 changes: 2 additions & 0 deletions build/build.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ function clean_checkout(string $dir)
system('find libraries/vendor -name _config.yml | xargs rm -rf -');
system('find libraries/vendor -name .bowerrc | xargs rm -rf -');
system('find libraries/vendor -name bower.json | xargs rm -rf -');
system('find libraries/vendor -name .drone.yml | xargs rm -rf -');
system('find libraries/vendor -name .drone.jsonnet | xargs rm -rf -');
system('rm -rf libraries/vendor/bin');

// aldo26-matthias/idna-convert
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ customElements.whenDefined('joomla-tab').then(() => {
link.click();
}

if (link.hasAttribute('aria-expanded') && link.getAttribute('aria-expanded') === 'true' && !instance) {
if (link.hasAttribute('aria-selected') && link.getAttribute('aria-selected') === 'true' && !instance) {
instance = new WebInstaller();
instance.initialise();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,10 @@
margin-inline-start: 2rem;
}
}

&.view-user {
table thead th {
color: var(--bs-body-color);
}
}
}
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"joomla/event": "^3.0.1",
"joomla/filter": "^3.0.2",
"joomla/filesystem": "^3.1.0",
"joomla/http": "^3.0.1",
"joomla/http": "^3.1.0",
"joomla/input": "~3.0",
"joomla/language": "~3.0",
"joomla/oauth1": "~3.0",
Expand All @@ -74,7 +74,7 @@
"joomla/string": "^3.0.1",
"joomla/uri": "~3.0",
"joomla/utilities": "~3.0",
"algo26-matthias/idna-convert": "^3.1.1",
"algo26-matthias/idna-convert": "^4.0.4",
"defuse/php-encryption": "^2.4.0",
"doctrine/inflector": "^1.4.4",
"fig/link-util": "^1.2.0",
Expand Down Expand Up @@ -108,13 +108,13 @@
"phpseclib/bcmath_compat": "^2.0.3",
"jfcherng/php-diff": "^6.16.2",
"voku/portable-utf8": "dev-joomla-5.3 as 6.0.13",
"php-tuf/php-tuf": "^1.0.2",
"php-tuf/php-tuf": "^1.0.3",
"php-debugbar/php-debugbar": "^2.1.6"
},
"require-dev": {
"phpunit/phpunit": "^9.6.22",
"friendsofphp/php-cs-fixer": "^3.72.0",
"squizlabs/php_codesniffer": "^3.11.3",
"squizlabs/php_codesniffer": "^3.12.0",
"joomla/mediawiki": "^3.0",
"joomla/test": "~3.0",
"phpstan/phpstan": "^2.1.8",
Expand Down
64 changes: 33 additions & 31 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions installation/src/Model/ConfigurationModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,12 @@ public function createConfiguration($options)
// Locale settings.
$registry->set('offset', 'UTC');

// CORS settings.
$registry->set('cors', false);
$registry->set('cors_allow_origin', '*');
$registry->set('cors_allow_methods', '');
$registry->set('cors_allow_headers', 'Content-Type,X-Joomla-Token');

// Mail settings.
$registry->set('mailonline', true);
$registry->set('mailer', 'mail');
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/MVC/View/JsonApiView.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public function displayItem($item = null)
$item = $this->prepareItem($model->getItem());
}

if ($item->id === null) {
if (!$item || $item->id === null) {
throw new RouteNotFoundException('Item does not exist');
}

Expand Down
Loading