mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-13 15:18:41 +00:00
Make text public
This commit is contained in:
parent
770cb56f7b
commit
75b1651423
|
|
@ -168,7 +168,7 @@ class View extends ViewAbstract
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected function getText(string $translation, string $module = null, string $theme = null) : string
|
public function getText(string $translation, string $module = null, string $theme = null) : string
|
||||||
{
|
{
|
||||||
if (!isset($module)) {
|
if (!isset($module)) {
|
||||||
$match = '/Modules/';
|
$match = '/Modules/';
|
||||||
|
|
@ -208,7 +208,7 @@ class View extends ViewAbstract
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected function getHtml(string $translation, string $module = null, string $theme = null) : string
|
public function getHtml(string $translation, string $module = null, string $theme = null) : string
|
||||||
{
|
{
|
||||||
return htmlspecialchars($this->getText($translation, $module, $theme));
|
return htmlspecialchars($this->getText($translation, $module, $theme));
|
||||||
}
|
}
|
||||||
|
|
@ -222,7 +222,7 @@ class View extends ViewAbstract
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected function printHtml(string $text) : string
|
public function printHtml(string $text) : string
|
||||||
{
|
{
|
||||||
return htmlspecialchars($text);
|
return htmlspecialchars($text);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user