Skip to content

Commit

Permalink
Update to 2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
denysdesign committed Oct 28, 2023
1 parent 7afac8d commit d3fde8b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
20 changes: 10 additions & 10 deletions packages/tpl_admin/ajax/cache.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php
/**
* Seblod Admin Template
* Admin Template
*
* @version 2.x
* @package admin
* @author Denys D. Nosov (denys@joomla-ua.org)
* @copyright (C) 2018-2023 by Denys D. Nosov (https://joomla-ua.org)
* @license GNU General Public License version 2 or later; see LICENSE.md
* @package Joomla.Site
* @subpackage admin
*
**/
* @author Denys Nosov, denys@joomla-ua.org
* @copyright 2018-2023 (C) Joomla! Ukraine, https://joomla-ua.org. All rights reserved.
* @license Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 License (http://creativecommons.org/licenses/by-nc-nd/3.0/)
*/

define('_JEXEC', 1);
define('DS', DIRECTORY_SEPARATOR);
Expand All @@ -26,9 +26,9 @@
$container->alias(SessionInterface::class, 'session.web.site');

$app = $container->get(AdministratorApplication::class);
$joomlaUser = Factory::getApplication()->getIdentity();
$lang = Factory::getApplication()->getLanguage();
$doc = Factory::getApplication()->getDocument();
$joomlaUser = Factory::getUser();
$lang = Factory::getLanguage();
$doc = Factory::getDocument();

if($joomlaUser->get('id') < 1)
{
Expand Down
28 changes: 14 additions & 14 deletions packages/tpl_admin/ajax/tags.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
<?php
/**
* Seblod Admin Template
* Admin Template
*
* @version 2.x
* @package admin
* @author Denys D. Nosov (denys@joomla-ua.org)
* @copyright (C) 2018-2023 by Denys D. Nosov (https://joomla-ua.org)
* @license GNU General Public License version 2 or later; see LICENSE.md
* @package Joomla.Site
* @subpackage admin
*
**/

use Joomla\CMS\Application\AdministratorApplication;
use Joomla\CMS\Factory;
use Joomla\Session\SessionInterface;
* @author Denys Nosov, denys@joomla-ua.org
* @copyright 2018-2019 (C) Joomla! Ukraine, https://joomla-ua.org. All rights reserved.
* @license Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 License (http://creativecommons.org/licenses/by-nc-nd/3.0/)
*/

header('Content-type: application/json; charset=utf-8');

Expand All @@ -24,13 +20,17 @@
require_once JPATH_BASE . '/includes/defines.php';
require_once JPATH_BASE . '/includes/framework.php';

use Joomla\CMS\Application\AdministratorApplication;
use Joomla\CMS\Factory;
use Joomla\Session\SessionInterface;

$container = Factory::getContainer();
$container->alias(SessionInterface::class, 'session.web.site');

$app = $container->get(AdministratorApplication::class);
$joomlaUser = Factory::getApplication()->getIdentity();
$lang = Factory::getApplication()->getLanguage();
$doc = Factory::getApplication()->getDocument();
$joomlaUser = Factory::getUser();
$lang = Factory::getLanguage();
$doc = Factory::getDocument();

if($joomlaUser->get('id') < 1)
{
Expand Down

0 comments on commit d3fde8b

Please sign in to comment.