summaryrefslogtreecommitdiff
path: root/app/views/helpers/javascript_vars.phtml
diff options
context:
space:
mode:
authorGravatar Clemens Neubauer <cn-tools@gmx.at> 2021-01-07 21:45:48 +0100
committerGravatar GitHub <noreply@github.com> 2021-01-07 21:45:48 +0100
commitef458992c12438f88780c52076cf105e3de8a60e (patch)
treeaa4679fc50d789b3479a0b15c1d968a64c1ca97c /app/views/helpers/javascript_vars.phtml
parentbfd872e885c72ac7ca9a6bcf9b6928c1d3e501cb (diff)
two new hooks (#3342)
* add two new hooks I develop a new extension and i need 2 new hooks for it * update EN documentation * Correct typing errors * Update app/views/helpers/javascript_vars.phtml Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/views/helpers/javascript_vars.phtml')
-rw-r--r--app/views/helpers/javascript_vars.phtml2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/helpers/javascript_vars.phtml b/app/views/helpers/javascript_vars.phtml
index 11373b76f..089175f7d 100644
--- a/app/views/helpers/javascript_vars.phtml
+++ b/app/views/helpers/javascript_vars.phtml
@@ -1,6 +1,7 @@
<?php
$mark = FreshRSS_Context::$user_conf->mark_when;
$s = validateShortcutList(FreshRSS_Context::$user_conf->shortcuts);
+$extData = Minz_ExtensionManager::callHook('js_vars', []);
echo htmlspecialchars(json_encode(array(
'context' => array(
'anonymous' => !FreshRSS_Auth::hasAccess(),
@@ -62,4 +63,5 @@ echo htmlspecialchars(json_encode(array(
'read' => rawurlencode(_i('read')),
'unread' => rawurlencode(_i('unread')),
),
+ 'extensions' => $extData,
), JSON_UNESCAPED_UNICODE), ENT_NOQUOTES, 'UTF-8');