Lang/cleanup

* fixed break and trim functions not handling text shorter than break length
 * add option to output raw text besides html, markup format
 * decalare return types and parameter types
 * cleanup
This commit is contained in:
Sarjuuk
2023-04-29 03:01:13 +02:00
parent 78f7f6b9cf
commit 8bf7b3ee06
15 changed files with 136 additions and 91 deletions

View File

@@ -103,7 +103,7 @@ class ObjectPage extends GenericPage
break;
default: // requires key .. maybe
{
$locks = Lang::getLocks($this->subject->getField('lockId'), $ids, true);
$locks = Lang::getLocks($this->subject->getField('lockId'), $ids, true, Lang::FMT_MARKUP);
$l = [];
foreach ($ids as $type => $typeIds)