<commit_before><?php

// Force compression disabling just for this script
// -> IE apparently doesn't handle gzip compression on javascript files
// (this is why FCKeditor doesn't find the "Tiki" toolbar defined here when compression is activated)
$force_no_compression = true;
include('tiki-setup.php');
include_once 'lib/toolbars/toolbarslib.php';

$fckstyle = 'styles/'.$prefs['style'];
$smarty->assign('fckstyle',$fckstyle);

$section = isset($_GET['section']) ? $_GET['section'] : 'wiki page';

$toolbars = ToolbarsList::fromPreference( $section );
//file_put_contents('temp/cache/foo', print_r($toolbars->getWysiwygArray(), true));
$smarty->assign('toolbar', $toolbars->getWysiwygArray() );
<commit_msg>[FIX] Restore code to apply theme option css to FCK Editor (wiped by me in r20677)<commit_after><?php

// Force compression disabling just for this script
// -> IE apparently doesn't handle gzip compression on javascript files
// (this is why FCKeditor doesn't find the "Tiki" toolbar defined here when compression is activated)
$force_no_compression = true;
include('tiki-setup.php');
include_once 'lib/toolbars/toolbarslib.php';

global $tikilib;
$smarty->assign('fckstyle',$tikilib->get_style_path('', '', $prefs['style']));
$smarty->assign('fckstyleoption',$tikilib->get_style_path($prefs['style'], $prefs['style_option'], $prefs['style_option']));

$section = isset($_GET['section']) ? $_GET['section'] : 'wiki page';

$toolbars = ToolbarsList::fromPreference( $section );
//file_put_contents('temp/cache/foo', print_r($toolbars->getWysiwygArray(), true));
$smarty->assign('toolbar', $toolbars->getWysiwygArray() );

{'fraction_non_alphanumeric': 0.1668711656441718, 'fraction_numerical': 0.003067484662576687, 'mean_word_length': 7.0344827586206895, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4375561', 'n_tokens_mistral': 526, 'n_tokens_neox': 512, 'n_words': 125}