Skip to content

Commit 274191a

Browse files
committed
Nesting limits
1 parent 36b4d1d commit 274191a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

featherbb/Core/Parser.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ private function configureParser()
7575
$configurator->BBCodes->addFromRepository('LEFT');
7676
$configurator->BBCodes->addFromRepository('JUSTIFY');
7777

78+
// Alias COLOUR to COLOR
79+
$configurator->BBCodes->add('COLOUR')->tagName = 'COLOR';
80+
81+
// Add some default limits
82+
$configurator->tags['QUOTE']->nestingLimit = 3;
83+
$configurator->tags['LIST']->nestingLimit = 5;
84+
7885
$configurator->registeredVars['cacheDir'] = ForumEnv::get('FORUM_CACHE_DIR');
7986

8087
// Get an instance of the parser and the renderer

0 commit comments

Comments
 (0)