mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
fix typo in preference name rt(e)_font*
This commit is contained in:
parent
9f363ad51c
commit
7a55eef6c8
@ -192,9 +192,9 @@ class HtmlArea extends Etemplate\Widget
|
|||||||
*/
|
*/
|
||||||
public static function contentCss()
|
public static function contentCss()
|
||||||
{
|
{
|
||||||
$font_family = $GLOBALS['egw_info']['user']['preferences']['common']['rtf_font'] ?? 'arial, helvetica, sans-serif';
|
$font_family = $GLOBALS['egw_info']['user']['preferences']['common']['rte_font'] ?? 'arial, helvetica, sans-serif';
|
||||||
$font_size = ($GLOBALS['egw_info']['user']['preferences']['common']['rtf_font_size'] ?? '10').
|
$font_size = ($GLOBALS['egw_info']['user']['preferences']['common']['rte_font_size'] ?? '10').
|
||||||
($GLOBALS['egw_info']['user']['preferences']['common']['rtf_font_unit'] ?? 'pt');
|
($GLOBALS['egw_info']['user']['preferences']['common']['rte_font_unit'] ?? 'pt');
|
||||||
|
|
||||||
return <<<EOF
|
return <<<EOF
|
||||||
/**
|
/**
|
||||||
|
@ -28,7 +28,7 @@ $GLOBALS['egw']->session->commit_session();
|
|||||||
|
|
||||||
// use an etag over user prefs and modification time of HtmlArea
|
// use an etag over user prefs and modification time of HtmlArea
|
||||||
$etag = '"'.md5(json_encode(array_intersect_key($GLOBALS['egw_info']['user']['preferences']['common'],
|
$etag = '"'.md5(json_encode(array_intersect_key($GLOBALS['egw_info']['user']['preferences']['common'],
|
||||||
array_flip(['rtf_font', 'rtf_font_size', 'rtf_font_unit']))).filemtime(__DIR__.'/src/Etemplate/Widget/HtmlArea.php')).'"';
|
array_flip(['rte_font', 'rte_font_size', 'rte_font_unit']))).filemtime(__DIR__.'/src/Etemplate/Widget/HtmlArea.php')).'"';
|
||||||
|
|
||||||
// headers to allow caching, egw_framework specifies etag on url to force reload, even with Expires header
|
// headers to allow caching, egw_framework specifies etag on url to force reload, even with Expires header
|
||||||
Api\Session::cache_control(86400); // cache for 1 day
|
Api\Session::cache_control(86400); // cache for 1 day
|
||||||
|
Loading…
Reference in New Issue
Block a user