From ef458992c12438f88780c52076cf105e3de8a60e Mon Sep 17 00:00:00 2001 From: Clemens Neubauer Date: Thu, 7 Jan 2021 21:45:48 +0100 Subject: 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 --- app/views/helpers/javascript_vars.phtml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/views/helpers/javascript_vars.phtml') 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 @@ 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'); -- cgit v1.2.3