From 27e4bd833a1ee5dda75188ca2cbb124a38105692 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Mon, 14 Oct 2024 12:18:04 +0200 Subject: [PATCH] config.php: use op-cache friend array syntax for markup config --- inc/config.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/inc/config.php b/inc/config.php index 11ac8809..fbca7447 100644 --- a/inc/config.php +++ b/inc/config.php @@ -783,11 +783,13 @@ * ==================== */ - // "Wiki" markup syntax ($config['wiki_markup'] in pervious versions): - $config['markup'][] = array("/'''(.+?)'''/", "\$1"); - $config['markup'][] = array("/''(.+?)''/", "\$1"); - $config['markup'][] = array("/\*\*(.+?)\*\*/", "\$1"); - $config['markup'][] = array("/^[ |\t]*==(.+?)==[ |\t]*$/m", "\$1"); + $config['markup'] = [ + // "Wiki" markup syntax ($config['wiki_markup'] in pervious versions): + [ "/'''(.+?)'''/", "\$1" ], + [ "/''(.+?)''/", "\$1" ], + [ "/\*\*(.+?)\*\*/", "\$1" ], + [ "/^[ |\t]*==(.+?)==[ |\t]*$/m", "\$1" ], + ]; // Code markup. This should be set to a regular expression, using tags you want to use. Examples: // "/\[code\](.*?)\[\/code\]/is"