aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp
diff options
context:
space:
mode:
authorMatt Friedman <maf675@gmail.com>2017-01-11 01:54:14 -0800
committerMatt Friedman <maf675@gmail.com>2017-01-11 01:55:39 -0800
commita3accfaf461bc963f0661bdab1befbc9ef50a514 (patch)
tree246439d6083dd5326f63e6f9bd192145fcbe4e69 /phpBB/includes/acp
parentcb406258fe13f593035f0cd29e5835752985629c (diff)
downloadforums-a3accfaf461bc963f0661bdab1befbc9ef50a514.tar
forums-a3accfaf461bc963f0661bdab1befbc9ef50a514.tar.gz
forums-a3accfaf461bc963f0661bdab1befbc9ef50a514.tar.bz2
forums-a3accfaf461bc963f0661bdab1befbc9ef50a514.tar.xz
forums-a3accfaf461bc963f0661bdab1befbc9ef50a514.zip
[ticket/14989] Allow more admin-configurable schemes in post links
PHPBB3-14989
Diffstat (limited to 'phpBB/includes/acp')
-rw-r--r--phpBB/includes/acp/acp_board.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_board.php b/phpBB/includes/acp/acp_board.php
index 02af98ec54..84c3a89052 100644
--- a/phpBB/includes/acp/acp_board.php
+++ b/phpBB/includes/acp/acp_board.php
@@ -196,6 +196,7 @@ class acp_board
'allow_post_flash' => array('lang' => 'ALLOW_POST_FLASH', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'allow_smilies' => array('lang' => 'ALLOW_SMILIES', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
'allow_post_links' => array('lang' => 'ALLOW_POST_LINKS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
+ 'allowed_schemes_links' => array('lang' => 'ALLOWED_SCHEMES_LINKS', 'validate' => 'string', 'type' => 'text:0:255', 'explain' => true),
'allow_nocensors' => array('lang' => 'ALLOW_NO_CENSORS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'allow_bookmarks' => array('lang' => 'ALLOW_BOOKMARKS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'enable_post_confirm' => array('lang' => 'VISUAL_CONFIRM_POST', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
@@ -551,6 +552,12 @@ class acp_board
}
}
+ // Invalidate the text_formatter cache when posting options are changed
+ if ($mode == 'post' && $submit)
+ {
+ $phpbb_container->get('text_formatter.cache')->invalidate();
+ }
+
// Store news and exclude ids
if ($mode == 'feed' && $submit)
{