forked from joomla/joomla-cms
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[4.4] Postinstallation-Message htaccess.txt brotli change (joomla#43173)
* [4.4] Postinstallation-Message htaccess.txt brotli change * Fix copyright year Co-authored-by: Quy <[email protected]> --------- Co-authored-by: Richard Fath <[email protected]> Co-authored-by: Quy <[email protected]>
- Loading branch information
1 parent
0439943
commit bdb23b8
Showing
4 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
administrator/components/com_admin/postinstall/htaccessbrotli.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
/** | ||
* @package Joomla.Administrator | ||
* @subpackage com_admin | ||
* | ||
* @copyright (C) 2024 Open Source Matters, Inc. <https://www.joomla.org> | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
* | ||
* This file contains post-installation message handling for notifying users of a change | ||
* in the default .htaccess file regarding setting the Content-Encoding header. | ||
*/ | ||
|
||
// phpcs:disable PSR1.Files.SideEffects | ||
\defined('_JEXEC') or die; | ||
// phpcs:enable PSR1.Files.SideEffects | ||
|
||
/** | ||
* Notifies users of a change in the default .htaccess file regarding setting for brotli to prevent double compression | ||
* | ||
* This check returns true regardless of condition. | ||
* | ||
* @return boolean | ||
* | ||
* @since 4.4.4 | ||
*/ | ||
function admin_postinstall_htaccessbrotli_condition() | ||
{ | ||
return true; | ||
} |
5 changes: 5 additions & 0 deletions
5
administrator/components/com_admin/sql/updates/mysql/4.4.4-2024-03-28.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-- | ||
-- Add post-installation message about setting the Content-Encoding header in .htaccess | ||
-- | ||
INSERT IGNORE INTO `#__postinstall_messages` (`extension_id`, `title_key`, `description_key`, `action_key`, `language_extension`, `language_client_id`, `type`, `action_file`, `action`, `condition_file`, `condition_method`, `version_introduced`, `enabled`) | ||
SELECT `extension_id`, 'COM_ADMIN_POSTINSTALL_MSG_HTACCESS_BROTLI_TITLE', 'COM_ADMIN_POSTINSTALL_MSG_HTACCESS_BROTLI_DESCRIPTION', '', 'com_admin', 1, 'message', '', '', 'admin://components/com_admin/postinstall/htaccessbrotli.php', 'admin_postinstall_htaccessbrotli_condition', '4.4.4', 1 FROM `#__extensions` WHERE `name` = 'files_joomla'; |
6 changes: 6 additions & 0 deletions
6
administrator/components/com_admin/sql/updates/postgresql/4.4.4-2024-03-28.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
-- | ||
-- Add post-installation message about setting the Content-Encoding header in .htaccess | ||
-- | ||
INSERT INTO "#__postinstall_messages" ("extension_id", "title_key", "description_key", "action_key", "language_extension", "language_client_id", "type", "action_file", "action", "condition_file", "condition_method", "version_introduced", "enabled") | ||
SELECT "extension_id", 'COM_ADMIN_POSTINSTALL_MSG_HTACCESS_BROTLI_TITLE', 'COM_ADMIN_POSTINSTALL_MSG_HTACCESS_BROTLI_DESCRIPTION', '', 'com_admin', 1, 'message', '', '', 'admin://components/com_admin/postinstall/htaccessbrotli.php', 'admin_postinstall_htaccessbrotli_condition', '4.4.4', 1 FROM "#__extensions" WHERE "name" = 'files_joomla' | ||
ON CONFLICT DO NOTHING; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters