use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Core\System;
-use Friendcia\Model\FileTag;
+use Friendica\Model\FileTag;
use Friendica\Model\Item;
use Friendica\Database\DBA;
+use Friendica\Util\Crypto;
function editpost_content(App $a)
{
$geotag = '';
- $o .= Renderer::replaceMacros(get_markup_template("section_title.tpl"), [
+ $o .= Renderer::replaceMacros(Renderer::getMarkupTemplate("section_title.tpl"), [
'$title' => L10n::t('Edit post')
]);
- $tpl = get_markup_template('jot-header.tpl');
+ $tpl = Renderer::getMarkupTemplate('jot-header.tpl');
$a->page['htmlhead'] .= Renderer::replaceMacros($tpl, [
'$baseurl' => System::baseUrl(),
'$ispublic' => ' ', // L10n::t('Visible to <strong>everybody</strong>'),
'$nickname' => $a->user['nickname']
]);
- $tpl = get_markup_template("jot.tpl");
+ $tpl = Renderer::getMarkupTemplate("jot.tpl");
if (strlen($item['allow_cid']) || strlen($item['allow_gid']) || strlen($item['deny_cid']) || strlen($item['deny_gid'])) {
$lockstate = 'lock';
'$jotplugins' => $jotplugins,
'$sourceapp' => L10n::t($a->sourcename),
'$cancel' => L10n::t('Cancel'),
- '$rand_num' => random_digits(12),
+ '$rand_num' => Crypto::randomDigits(12),
//jot nav tab (used in some themes)
'$message' => L10n::t('Message'),