@@ -16,8 +16,7 @@ class quickreply_module
1616
1717 public function main ($ id , $ mode )
1818 {
19- global $ cache , $ config , $ db , $ user , $ auth , $ template , $ request ;
20- global $ phpbb_root_path , $ phpEx , $ phpbb_admin_path , $ phpbb_container ;
19+ global $ config , $ user , $ template , $ request ;
2120
2221 $ this ->page_title = 'ACP_QUICKREPLY ' ;
2322 $ this ->tpl_name = 'acp_quickreply ' ;
@@ -63,13 +62,22 @@ public function main($id, $mode)
6362 ),
6463 );
6564
65+ /**
66+ * We need to disable this feature in phpBB 3.1.9 and higher
67+ * as it has been added to the core.
68+ */
69+ if (version_compare ($ config ['version ' ], '3.1.8 ' , '> ' ))
70+ {
71+ unset($ display_vars ['qr_ctrlenter ' ]);
72+ }
73+
6674 if (isset ($ display_vars ['lang ' ]))
6775 {
6876 $ user ->add_lang ($ display_vars ['lang ' ]);
6977 }
7078
7179 $ this ->new_config = $ config ;
72- $ cfg_array = ($ request ->is_set ('config ' )) ? utf8_normalize_nfc ( $ request ->variable ('config ' , array ('' => '' ), true ) ) : $ this ->new_config ;
80+ $ cfg_array = ($ request ->is_set ('config ' )) ? $ request ->variable ('config ' , array ('' => '' ), true ) : $ this ->new_config ;
7381 $ error = array ();
7482
7583 // We validate the complete config if wished
0 commit comments