mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-25 15:48:40 +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
|
||||
*/
|
||||
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)) {
|
||||
$match = '/Modules/';
|
||||
|
|
@ -208,7 +208,7 @@ class View extends ViewAbstract
|
|||
*
|
||||
* @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));
|
||||
}
|
||||
|
|
@ -222,7 +222,7 @@ class View extends ViewAbstract
|
|||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected function printHtml(string $text) : string
|
||||
public function printHtml(string $text) : string
|
||||
{
|
||||
return htmlspecialchars($text);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user