-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'upstream/4.0-dev' into feature/htmlhelper-for-an-icon
- Loading branch information
Showing
26 changed files
with
89 additions
and
153 deletions.
There are no files selected for viewing
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
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
3 changes: 0 additions & 3 deletions
3
administrator/components/com_admin/sql/updates/mysql/3.9.19-2020-06-01.sql
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
administrator/components/com_admin/sql/updates/postgresql/3.9.15-2020-01-08.sql
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
administrator/components/com_admin/sql/updates/postgresql/3.9.19-2020-06-01.sql
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
administrator/components/com_admin/sql/updates/sqlazure/3.9.19-2020-06-01.sql
This file was deleted.
Oops, something went wrong.
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
44 changes: 44 additions & 0 deletions
44
administrator/components/com_admin/src/Service/HTML/Configuration.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,44 @@ | ||
<?php | ||
/** | ||
* @package Joomla.Administrator | ||
* @subpackage com_admin | ||
* | ||
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
namespace Joomla\Component\Admin\Administrator\Service\HTML; | ||
|
||
\defined('_JEXEC') or die; | ||
|
||
/** | ||
* Class for rendering configuration values | ||
* | ||
* @since __DEPLOY_VERSION__ | ||
*/ | ||
class Configuration | ||
{ | ||
/** | ||
* Method to generate a string for a value | ||
* | ||
* @param mixed $value The configuration value | ||
* | ||
* @return string Formatted and escaped string | ||
* | ||
* @since __DEPLOY_VERSION__ | ||
*/ | ||
public function value($value): string | ||
{ | ||
if (\is_bool($value)) | ||
{ | ||
return $value ? 'true' : 'false'; | ||
} | ||
|
||
if (\is_array($value)) | ||
{ | ||
$value = implode(', ', $value); | ||
} | ||
|
||
return htmlspecialchars($value, ENT_QUOTES, 'UTF-8'); | ||
} | ||
} |
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
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
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.