aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2014-04-11 19:23:31 -0700
committerCesar G <prototech91@gmail.com>2014-04-23 09:11:40 -0700
commit607698c8844b1f08aef1aca63cd8d981783ef92a (patch)
treea4c35830dd69f287e73a42a0be7be33ffdb9287a /phpBB/phpbb/db
parent683e8c0c17726205501333aea117e4394fc34ef4 (diff)
downloadforums-607698c8844b1f08aef1aca63cd8d981783ef92a.tar
forums-607698c8844b1f08aef1aca63cd8d981783ef92a.tar.gz
forums-607698c8844b1f08aef1aca63cd8d981783ef92a.tar.bz2
forums-607698c8844b1f08aef1aca63cd8d981783ef92a.tar.xz
forums-607698c8844b1f08aef1aca63cd8d981783ef92a.zip
[ticket/10737] Add config setting to disable live searches.
PHPBB3-10737
Diffstat (limited to 'phpBB/phpbb/db')
-rw-r--r--phpBB/phpbb/db/migration/data/v310/live_searches_config.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v310/live_searches_config.php b/phpBB/phpbb/db/migration/data/v310/live_searches_config.php
new file mode 100644
index 0000000000..8b147c954c
--- /dev/null
+++ b/phpBB/phpbb/db/migration/data/v310/live_searches_config.php
@@ -0,0 +1,25 @@
+<?php
+/**
+*
+* @package migration
+* @copyright (c) 2014 phpBB Group
+* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
+*
+*/
+
+namespace phpbb\db\migration\data\v310;
+
+class live_searches_config extends \phpbb\db\migration\migration
+{
+ public function effectively_installed()
+ {
+ return isset($this->config['allow_live_searches']);
+ }
+
+ public function update_data()
+ {
+ return array(
+ array('config.add', array('allow_live_searches', '1')),
+ );
+ }
+}