Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
baa5af1
[5.2] Set version to 5.2 (#42970)
Hackwar Mar 7, 2024
61a20d4
Upmerge 5.1 to 5.2
pe7er Mar 14, 2024
24a685a
Merge pull request #43028 from pe7er/5.2/upmerge/2024-03-14
pe7er Mar 14, 2024
6f96d48
Drone: Fix artifacts upload for 5.2-dev (#43035)
Hackwar Mar 15, 2024
c23fdab
Router: Check directly for RouterInterface (#43119)
Hackwar Mar 22, 2024
26688f0
Adding missing type hints for $this
Hackwar Mar 24, 2024
5248e61
Upmerge 5.1 to 5.2
pe7er Mar 27, 2024
eb9d704
Merge pull request #43167 from pe7er/5.2/upmerge/2024-03-27
pe7er Mar 27, 2024
13f330c
Upmerge 5.1 to 5.2
pe7er Apr 3, 2024
5e038df
Change all calls for AbstractView::document to AbstractView::getDocum…
Hackwar Apr 3, 2024
65553d5
Merge pull request #43201 from pe7er/5.2/upmerge/2024-04-03
pe7er Apr 3, 2024
644c360
Merge branch '5.2-dev' into 5.2-phan-this
Hackwar Apr 8, 2024
cdbb601
Languagefilter: Add message when no content language is published
Hackwar Apr 8, 2024
123eaf5
codestyle
Hackwar Apr 8, 2024
4e5629b
Update administrator/language/en-GB/plg_system_languagefilter.ini
Hackwar Apr 8, 2024
aec009b
Drone: Switching to key authentication for artifacts (#43237)
Hackwar Apr 9, 2024
352b86f
Update administrator/language/en-GB/plg_system_languagefilter.ini
Hackwar Apr 10, 2024
c0b8d22
Merge branch '5.2-dev' into 5.2-phpstan-document
pe7er Apr 11, 2024
dbcb08f
Merge branch '5.2-dev' into 5.2-phan-this
pe7er Apr 11, 2024
68f4b48
Merge pull request #43205 from Hackwar/5.2-phpstan-document
pe7er Apr 11, 2024
9f08eb6
Merge branch '5.2-dev' into 5.2-phan-this
pe7er Apr 11, 2024
d919f59
Merge pull request #43136 from Hackwar/5.2-phan-this
pe7er Apr 11, 2024
35453e4
Upmerge 5.1 to 5.2
pe7er Apr 11, 2024
896a15c
Merge branch '5.2-dev' into 5.2/upmerge/2024-04-11
pe7er Apr 11, 2024
a25fcfb
Merge pull request #43257 from pe7er/5.2/upmerge/2024-04-11
pe7er Apr 11, 2024
56be6e4
upmerge 5.1 to 5.2
woluweb Apr 18, 2024
42c57d6
Merge pull request #43297 from woluweb/5.2/upmerge/2024-04-18
woluweb Apr 18, 2024
247c409
Deprecate WebApplication::$JComponentTitle
HLeithner Apr 18, 2024
2ff6c04
Merge pull request #43304 from HLeithner/deprecate/title
pe7er Apr 23, 2024
73e51d5
Merge branch '5.2-dev' into 5.2-lang-unpublished
pe7er Apr 23, 2024
04548a2
Merge pull request #43232 from Hackwar/5.2-lang-unpublished
woluweb Apr 23, 2024
c25a41e
Add script to update titles on github (#43341)
HLeithner Apr 24, 2024
d8bc867
Merge branch '5.1-dev' into 5.2/upmerge/2024-04-25
woluweb Apr 25, 2024
d04cce5
upmerge 5.1 to 5.2
woluweb Apr 25, 2024
cb48b8b
CS (#43363)
HLeithner Apr 25, 2024
d487cfd
Merge branch '5.2-dev' into 5.2/upmerge/2024-04-25
QuyTon Apr 25, 2024
4aa1b8a
Merge pull request #43364 from woluweb/5.2/upmerge/2024-04-25
pe7er Apr 25, 2024
a7f5e50
[5.2] Removing deprecated access to User object attributes (#43268)
Hackwar Apr 30, 2024
ef41412
Get the field value already loaded by getFields() (#42861)
Fedik Apr 30, 2024
1ca6a70
[5.1] json encoded in bind method (#43273)
brianteeman Apr 30, 2024
775cae6
[5.2] Clarify Cache Plugin (#43378)
brianteeman Apr 30, 2024
d8650b4
[5.2] Admin Module Latest (#43216)
brianteeman Apr 30, 2024
c5d627c
[5.2] Compress the thumbnails (#43282)
dgrammatiko Apr 30, 2024
d8ba91c
[5.2] replace scss variables by css variables (#42509)
hans2103 Apr 30, 2024
5b21db6
[5.2] Fixing typehint for getListQuery to QueryInterface (#43265)
Hackwar Apr 30, 2024
aaf1236
[5.2] Added link class selection to TinyMCE dialog (#43260)
RickR2H Apr 30, 2024
7db6a0f
[5.2] Vote : add aggregateRating in article's schemaorg information (…
Apr 30, 2024
4c9f2b3
[5.2] Pin Mysql Version to 8.0 (#43418)
rdeutz May 5, 2024
17f2d5c
com_users: Simplifying empty check in login layout (#41677)
Hackwar May 7, 2024
4c9fabc
[5.2] Change the article title (#43386)
brianteeman May 7, 2024
9e85456
[5.2] Static function getList deprecated in mod_stats (#42907)
joomlaweby May 7, 2024
1b337c4
[5.2] Allow nested Subform inside a Subform Custom Field (#43204)
AndySDH May 7, 2024
05563db
[5.1] TinyMCe insert content (#43411)
brianteeman May 7, 2024
c1223f0
replace at feature for mock (#43381)
rdeutz May 7, 2024
076864d
[5.2] scss comments (#43436)
brianteeman May 8, 2024
aa3374b
Upmerge 5.1 to 5.2
pe7er May 14, 2024
5580224
Merge pull request #43469 from pe7er/5.2/upmerge/2024-05-14
pe7er May 14, 2024
b5315c8
Upmerge 5.1 to 5.2
pe7er May 21, 2024
90c9aa3
Merge pull request #43500 from pe7er/5.2/upmerge/2024-05-21
pe7er May 21, 2024
8ecc131
AddToggle inline help button to plugin modal / dialog (#43296)
Ruud68 May 21, 2024
9f12c3b
[5.2] Minor cleanup for plugins JS (#42797)
C-Lodder May 21, 2024
c171626
Minor cleanup for Other JS (#42798)
C-Lodder May 21, 2024
1548e30
[5.2] Password Strength Symbols (#43484)
brianteeman May 22, 2024
0e65752
Merge branch '5.1-dev' into 5.2/upmerge/2024-05-27
pe7er May 27, 2024
efeeb8f
Upmerge 5.1 to 5.2
pe7er May 27, 2024
4c4f5b5
Merge pull request #43542 from pe7er/5.2/upmerge/2024-05-27
pe7er May 27, 2024
f29f97e
Joomla! 5.2.0 Alpha 1
pe7er May 27, 2024
dfb572d
[5.2] Cleanup of return types for phpstan (#43350)
Hackwar May 29, 2024
aa3ab7c
[5.2] Usability: Back-end - Add item position and total count to Page…
HLeithner Jun 3, 2024
22d87a0
[5.2] Add custom css (#43392)
rdeutz Jun 3, 2024
a9afdb2
Merge branch 'refs/heads/5.2-backup' into 5.2-dev
pe7er Jun 3, 2024
e16a78f
reset to dev
pe7er Jun 3, 2024
08fa3b9
[5.2] Add languages API endpoint (#42136)
alikon Jun 4, 2024
cd7b78d
[5.2] TinyMCE Accordion (#43577)
brianteeman Jun 4, 2024
a7bba71
[5.2] Update CONTRIBUTING.md (#43615)
rdeutz Jun 4, 2024
b115247
add toogle inline help button to the module modal (#43599)
brianteeman Jun 11, 2024
be1bad5
Upmerge 5.1 to 5.2
pe7er Jun 13, 2024
d156859
Merge pull request #43647 from pe7er/5.2/upmerge/2024-06-13
pe7er Jun 13, 2024
167dcbc
Fix chevron color in module menu assignment (#43645)
RickR2H Jun 18, 2024
4bba703
Upmerge 5.1 to 5.2
pe7er Jun 18, 2024
f961e0d
Merge pull request #43670 from pe7er/5.2/upmerge/2024-06-18
pe7er Jun 18, 2024
e7f3f5b
Joomla! 5.2.0 Alpha 2
pe7er Jun 18, 2024
a3ce421
Revert to dev
pe7er Jun 25, 2024
cd3085d
corrected release date/time
pe7er Jun 26, 2024
675be15
Upmerge 5.1 to 5.2
pe7er Jul 2, 2024
d8ea4ac
Merge pull request #43730 from pe7er/5.2/upmerge/2024-07-02
pe7er Jul 2, 2024
3254a87
[5.2] Show a warning when there are due tasks (#43491)
zero-24 Jul 2, 2024
b62a2c6
Upmerge 5.1 to 5.2
pe7er Jul 9, 2024
ff983ff
added fix from LadySolveig for drone.yml
pe7er Jul 9, 2024
df99cd3
Update .drone.yml
bembelimen Jul 9, 2024
dd397e5
Merge pull request #43760 from pe7er/5.2/upmerge/2024-07-09
bembelimen Jul 9, 2024
84a4222
Update Captcha.php
artur-stepien Jul 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 3 additions & 4 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -392,20 +392,19 @@ steps:
- rclone delete nightly:/home/devj/public_html/nightlies/ --include "Joomla_$MINORVERSION.*"
- rclone delete nightly:/home/devj/public_html/cache/com_content/
- rclone copy ./transfer/ nightly:/home/devj/public_html/nightlies/
- curl -i -X POST -H 'Content-Type:application/json' -d '{"text":"Nightly Build for [Joomla 5.1](https://developer.joomla.org/nightly-builds.html) successfully built."}' $MATTERMOST_NIGHTLY_HOOK
- curl -i -X POST -H 'Content-Type:application/json' -d '{"text":"Nightly Build for [Joomla 5.2](https://developer.joomla.org/nightly-builds.html) successfully built."}' $MATTERMOST_NIGHTLY_HOOK

- name: buildfailure
image: joomlaprojects/docker-images:packager
environment:
MATTERMOST_NIGHTLY_HOOK:
from_secret: mattermost_nightly_hook
commands:
- curl -i -X POST -H 'Content-Type:application/json' -d '{"text":"Nightly Build for [Joomla 5.1](https://developer.joomla.org/nightly-builds.html) FAILED to built."}' $MATTERMOST_NIGHTLY_HOOK
- curl -i -X POST -H 'Content-Type:application/json' -d '{"text":"Nightly Build for [Joomla 5.2](https://developer.joomla.org/nightly-builds.html) FAILED to built."}' $MATTERMOST_NIGHTLY_HOOK
when:
status:
- failure


trigger:
event:
- cron
Expand All @@ -415,6 +414,6 @@ trigger:

---
kind: signature
hmac: 96994db51bcdf4b618f2b45fded770b4240977209559ce64e9f47c032648d9a1
hmac: bd41423d85abadb875c8fc911f87596ead88b62d26fabf6a283737c5a7b4c5b9

...
15 changes: 7 additions & 8 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
Contributing to the Joomla! CMS™
===============
You are welcome to submit a contribution for review and possible inclusion in the Joomla! CMS but, before it will be accepted, we ask that you follow these simple steps:
You are welcome to submit a contribution for review and possible inclusion in the Joomla! CMS but, before it will be accepted, we ask that you follow these simple guidelines:

1) Open an issue on our [Issue Tracker](https://issues.joomla.org/) or here on GitHub. If you can, please provide a fix and create a pull request (PR) instead; this will automatically create an issue for you so you do not have to create an issue if you are creating a pull request.
* If you have a feature request, then please open a discussion to define the feature request and discuss possible solutions. Discussions can be converted into issues when the request is defined sufficiently that a developer can start coding the feature. In this process you will get feedback from the maintainers, if the feature is something for the Joomla core distribution or not.

2) Follow the [Joomla! Coding Standards](https://developer.joomla.org/coding-standards.html).
* If you have found a bug, open an issue on our [Issue Tracker](https://issues.joomla.org/) or here on GitHub. If you can, please provide a fix and create a pull request (PR) instead; this will automatically create an issue for you so you do not have to create an issue, if you are creating a pull request.

3) When filing an issue or opening a PR, please include a clear title and description. The title should be a short summary of an issue and, if possible, should include a reference to an open issue. For example, `Invalid Query in com_admin (Ref #1234)` would be sufficient. All issues and PRs should include a description with as much detail as possible.
If it is a PR, include what the issue is, what the PR is addressing, testing instructions and environmental information (PHP version, database driver and version, and other data you can retrieve from your site's system information view) in case the issue is specific to certain environments. If additional information is needed, please be prepared to provide it as our community members review your submission.
* Follow the [Joomla! Coding Standards](https://manual.joomla.org/docs/get-started/codestyle) for code contributions.

4) Report security issues to the Joomla! Security Strike Team (JSST) at security@joomla.org or use the [JSST contact form](https://developer.joomla.org/contact-security-team.html). Please do not use the public tracker for security issues.
* When filing an issue or opening a Pull Request(PR), please include a clear title and description. The title should be a short summary of the issue. For example, `Invalid Query in com_admin`. All issues and PRs should include a description with as much detail as possible. If it is a PR, include what the issue is, what the PR is addressing, testing instructions and environmental information (PHP version, database driver and version, and other data you can retrieve from your site's system information view) in case the issue is specific to certain environments. If additional information is needed, please be prepared to provide it as our community members review your submission.

5) If you have a feature request, then please open a discussion to define the feature request and discuss possible solutions. Discussions can be converted into issues when the request is defined sufficiently that a developer can start coding the feature. In this process you will get feedback from the maintainers, if the feature is something for the Joomla core distribution or not.
* Report security issues to the Joomla! Security Strike Team (JSST) at security@joomla.org or use the [JSST contact form](https://developer.joomla.org/contact-security-team.html). Please do not use the public tracker for security issues. Find [here](https://github.com/joomla/joomla-cms?tab=security-ov-file#readme) more information about the [Security Policies and Procedures](https://github.com/joomla/joomla-cms?tab=security-ov-file#readme).

Please be patient as not all items will be tested immediately (remember, all bug testing for the Joomla! CMS is done by volunteers) and be receptive to feedback about your code.
Please be patient as not all items will be viewed or tested immediately (remember, all bug testing for the Joomla! CMS is done by volunteers) and be receptive to feedback about your code.

#### Branches
While 4.4 is in maintenance mode, ie we are still fixing bugs, PRs should be made to the `4.4-dev` branch. Merged bugfixes will be upmerged into the current 5.x branch. If a bug is only in the 5.x series the PR should be made to the current 5.x branch (currently 5.1).
Expand Down
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
Joomla! CMS™
====================

The Joomla! 5.2 branch is under heavy development and not all links in this document are available yet
------------------------------------------------------------------------------------------------------

Build Status
---------------------

| Drone-CI | AppVeyor | PHP | Node | npm |
|------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|--------------------------------------------------------------------------------------|---------------------------------------------------------------------------------|
| [![Build Status](https://ci.joomla.org/api/badges/joomla/joomla-cms/status.svg?branch=5.1-dev)](https://ci.joomla.org/joomla/joomla-cms) | [![Build status](https://ci.appveyor.com/api/projects/status/ru6sxal8jmfckvjc/branch/5.1-dev?svg=true)](https://ci.appveyor.com/project/release-joomla/joomla-cms) | [![PHP](https://img.shields.io/badge/PHP-V8.1.0-green)](https://www.php.net/) | [![node-lts](https://img.shields.io/badge/Node-V18.0-green)](https://nodejs.org/en/) | [![npm](https://img.shields.io/badge/npm-v9.6.7-green)](https://nodejs.org/en/) |
| [![Build Status](https://ci.joomla.org/api/badges/joomla/joomla-cms/status.svg?branch=5.2-dev)](https://ci.joomla.org/joomla/joomla-cms) | [![Build status](https://ci.appveyor.com/api/projects/status/ru6sxal8jmfckvjc/branch/5.2-dev?svg=true)](https://ci.appveyor.com/project/release-joomla/joomla-cms) | [![PHP](https://img.shields.io/badge/PHP-V8.1.0-green)](https://www.php.net/) | [![node-lts](https://img.shields.io/badge/Node-V18.0-green)](https://nodejs.org/en/) | [![npm](https://img.shields.io/badge/npm-v9.6.7-green)](https://nodejs.org/en/) |

Overview
---------------------
* This is the source of Joomla! 5.x.
* Joomla's [Official website](https://www.joomla.org).
* Joomla! 5.1 [version history](https://docs.joomla.org/Special:MyLanguage/Joomla_5.1_version_history).
* Detailed changes are in the [changelog](https://github.com/joomla/joomla-cms/commits/5.1-dev).
* Joomla! 5.2 [version history](https://docs.joomla.org/Special:MyLanguage/Joomla_5.2_version_history).
* Detailed changes are in the [changelog](https://github.com/joomla/joomla-cms/commits/5.2-dev).

What is Joomla?
---------------------
Expand Down Expand Up @@ -45,9 +48,9 @@ git clone https://github.com/joomla/joomla-cms.git
```bash
cd joomla-cms
```
- Go to the 5.1-dev branch:
- Go to the 5.2-dev branch:
```bash
git checkout 5.1-dev
git checkout 5.2-dev
```
- Install all the needed composer packages:
```bash
Expand Down
7 changes: 5 additions & 2 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
Joomla! CMS™

The Joomla! 5.2 branch is under heavy development and not all links in this document are available yet
------------------------------------------------------------------------------------------------------

1- Overview
* This is a Joomla! 5.x installation/upgrade package.
* Joomla! Official site: https://www.joomla.org
* Joomla! 5.1 version history - https://docs.joomla.org/Special:MyLanguage/Joomla_5.1_version_history
* Detailed changes in the Changelog: https://github.com/joomla/joomla-cms/commits/5.1-dev
* Joomla! 5.2 version history - https://docs.joomla.org/Special:MyLanguage/Joomla_5.2_version_history
* Detailed changes in the Changelog: https://github.com/joomla/joomla-cms/commits/5.2-dev

2- What is Joomla?
* Joomla! is a Content Management System (CMS) which enables you to build websites and powerful online applications.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Model\ListModel;
use Joomla\Database\DatabaseIterator;
use Joomla\Database\DatabaseQuery;
use Joomla\Database\ParameterType;
use Joomla\Database\QueryInterface;
use Joomla\Utilities\ArrayHelper;

// phpcs:disable PSR1.Files.SideEffects
Expand Down Expand Up @@ -79,7 +79,7 @@ protected function populateState($ordering = 'a.id', $direction = 'desc')
/**
* Build an SQL query to load the list data.
*
* @return DatabaseQuery
* @return QueryInterface
*
* @since 3.9.0
*
Expand Down Expand Up @@ -298,7 +298,7 @@ public function getLogDataAsIterator($pks = null)
*
* @param integer[]|null $pks An optional array of log record IDs to load
*
* @return DatabaseQuery
* @return QueryInterface
*
* @since 3.9.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
$listDirn = $this->escape($this->state->get('list.direction'));

/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa = $this->getDocument()->getWebAssetManager();
$wa->useScript('keepalive')
->useScript('table.columns')
->useScript('multiselect')
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_admin/script.php
Original file line number Diff line number Diff line change
Expand Up @@ -3002,7 +3002,7 @@ private function migrateTinymceConfiguration(): bool
/**
* setup Guided Tours Unique Identifiers
*
* @return boolean True on success
* @return void
*
* @since 5.0.0
*/
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_admin/tmpl/help/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/** @var \Joomla\Component\Admin\Administrator\View\Help\HtmlView $this */

/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa = $this->getDocument()->getWebAssetManager();
$wa->useScript('com_admin.admin-help');

?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use Joomla\Component\Associations\Administrator\Helper\AssociationsHelper;
use Joomla\Database\Exception\ExecutionFailureException;
use Joomla\Database\ParameterType;
use Joomla\Database\QueryInterface;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
Expand Down Expand Up @@ -152,7 +153,7 @@ protected function getStoreId($id = '')
/**
* Build an SQL query to load the list data.
*
* @return \Joomla\Database\DatabaseQuery|boolean
* @return QueryInterface|boolean
*
* @since 3.7.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/** @var HtmlView $this */

/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa = $this->getDocument()->getWebAssetManager();
$wa->useScript('keepalive')
->useScript('form.validate')
->usePreset('com_associations.sidebyside')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/** @var Joomla\Component\Associations\Administrator\View\Associations\HtmlView $this */

/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa = $this->getDocument()->getWebAssetManager();
$wa->useScript('com_associations.admin-associations-default')
->useScript('table.columns')
->useScript('multiselect');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
}

/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa = $this->getDocument()->getWebAssetManager();
$wa->useScript('multiselect')
->useScript('com_associations.admin-associations-modal');

Expand All @@ -43,7 +43,7 @@
2 => 'icon-folder',
];

$this->document->addScriptOptions('associations-modal', ['func' => $function]);
$this->getDocument()->addScriptOptions('associations-modal', ['func' => $function]);

?>
<div class="container-popup">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Joomla\CMS\MVC\Model\ListModel;
use Joomla\CMS\Table\Table;
use Joomla\Database\ParameterType;
use Joomla\Database\QueryInterface;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
Expand Down Expand Up @@ -94,7 +95,7 @@ public function &getCategoryOrders()
/**
* Build an SQL query to load the list data.
*
* @return \Joomla\Database\DatabaseQuery
* @return QueryInterface
*
* @since 1.6
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\MVC\Model\ListModel;
use Joomla\Database\ParameterType;
use Joomla\Database\QueryInterface;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
Expand Down Expand Up @@ -94,7 +95,7 @@ protected function getStoreId($id = '')
/**
* Build an SQL query to load the list data.
*
* @return \Joomla\Database\DatabaseQuery
* @return QueryInterface
*/
protected function getListQuery()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Model\ListModel;
use Joomla\Database\ParameterType;
use Joomla\Database\QueryInterface;
use Joomla\Filesystem\File;
use Joomla\Filesystem\Folder;
use Joomla\String\StringHelper;
Expand Down Expand Up @@ -87,7 +88,7 @@ protected function populateState($ordering = 'b.name', $direction = 'asc')
/**
* Build an SQL query to load the list data.
*
* @return \Joomla\Database\DatabaseQuery
* @return QueryInterface
*
* @since 1.6
*/
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_banners/tmpl/banner/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/** @var \Joomla\Component\Banners\Administrator\View\Banner\HtmlView $this */

/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa = $this->getDocument()->getWebAssetManager();
$wa->useScript('keepalive')
->useScript('form.validate')
->useScript('com_banners.admin-banner-edit');
Expand Down
4 changes: 2 additions & 2 deletions administrator/components/com_banners/tmpl/banners/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
/** @var \Joomla\Component\Banners\Administrator\View\Banners\HtmlView $this */

/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa = $this->getDocument()->getWebAssetManager();
$wa->useScript('table.columns')
->useScript('multiselect');

$user = $this->getCurrentUser();
$userId = $user->get('id');
$userId = $user->id;
$listOrder = $this->escape($this->state->get('list.ordering'));
$listDirn = $this->escape($this->state->get('list.direction'));
$saveOrder = $listOrder == 'a.ordering';
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_banners/tmpl/client/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/** @var \Joomla\Component\Banners\Administrator\View\Client\HtmlView $this */

/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa = $this->getDocument()->getWebAssetManager();
$wa->useScript('keepalive')
->useScript('form.validate');

Expand Down
4 changes: 2 additions & 2 deletions administrator/components/com_banners/tmpl/clients/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
];

$user = $this->getCurrentUser();
$userId = $user->get('id');
$userId = $user->id;
$listOrder = $this->escape($this->state->get('list.ordering'));
$listDirn = $this->escape($this->state->get('list.direction'));
$params = $this->state->get('params') ?? new Registry();
Expand Down Expand Up @@ -107,7 +107,7 @@
<?php foreach ($this->items as $i => $item) :
$canCreate = $user->authorise('core.create', 'com_banners');
$canEdit = $user->authorise('core.edit', 'com_banners');
$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->get('id') || is_null($item->checked_out);
$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || is_null($item->checked_out);
$canChange = $user->authorise('core.edit.state', 'com_banners') && $canCheckin;
?>
<tr class="row<?php echo $i % 2; ?>">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/** @var \Joomla\Component\Banners\Administrator\View\Download\HtmlView $this */

/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa = $this->getDocument()->getWebAssetManager();
$wa->useScript('form.validate');

?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/** @var \Joomla\Component\Banners\Administrator\View\Tracks\HtmlView $this */

/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa = $this->getDocument()->getWebAssetManager();
$wa->useScript('table.columns');

/** @var \Joomla\Component\Banners\Administrator\View\Tracks\HtmlView $this */
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_cache/tmpl/cache/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
$listDirn = $this->escape($this->state->get('list.direction'));

/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa = $this->getDocument()->getWebAssetManager();
$wa->useScript('keepalive')
->useScript('table.columns')
->useScript('multiselect')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
use Joomla\CMS\MVC\Factory\MVCFactoryInterface;
use Joomla\CMS\MVC\Model\ListModel;
use Joomla\CMS\Table\Table;
use Joomla\Database\DatabaseQuery;
use Joomla\Database\ParameterType;
use Joomla\Database\QueryInterface;
use Joomla\Utilities\ArrayHelper;

// phpcs:disable PSR1.Files.SideEffects
Expand Down Expand Up @@ -156,7 +156,7 @@ protected function getStoreId($id = '')
/**
* Method to get a database query to list categories.
*
* @return \Joomla\Database\DatabaseQuery
* @return QueryInterface
*
* @since 1.6
*/
Expand Down Expand Up @@ -493,7 +493,7 @@ public function countItems(&$items, $extension)
/**
* Manipulate the query to be used to evaluate if this is an Empty State to provide specific conditions for this extension.
*
* @return DatabaseQuery
* @return QueryInterface
*
* @since 4.0.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,8 @@ public function publish(&$pks, $value = 1)

return true;
}

return false;
}

/**
Expand Down
Loading