4
0
Эх сурвалжийг харах

Pass FreshRSS version to JS client side for extensions (#5902)

fix https://github.com/FreshRSS/FreshRSS/issues/5542
Alexandre Alapetite 2 жил өмнө
parent
commit
203132b015

+ 1 - 0
app/views/helpers/javascript_vars.phtml

@@ -28,6 +28,7 @@ echo htmlspecialchars(json_encode(array(
 			'extra.js' => @filemtime(PUBLIC_PATH . '/scripts/extra.js'),
 			'feed.js' => @filemtime(PUBLIC_PATH . '/scripts/feed.js'),
 		],
+		'version' => FRESHRSS_VERSION,
 	),
 	'shortcuts' => array(
 		'actualize' => @$s['actualize'],