Skip to content

[ENH] Wikiplugin fancytable

Sam Ndabo requested to merge ndabosam084/tiki:opt-fancytable into master

This MR's purpose is mostly to fix the issue we have here https://doc.tiki.org/TikiMaster-Preference-Report. I suggest some processes optimization to the plugin fancytable so we increase its performance and fix the execution time error we face at the link I mentioned before.

Changes made :

I Changed most issets() use like this isset($colwidths) ? $colwidths : '' to null coalescing operator $colwidths ?? '' And most of these

if ($sort) {
    $type = 'bs';
} else {
    $type = 'b';
}

To

$type = $sort ? 'bs' : 'b'; and I updated the construction of regular expression by concatenating all elements of the $tags array with the | (OR) operator using implode(), see the function preprocess_section()

Related task : https://avan.tech/item100893

Merge request reports