aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2013-07-14 20:44:00 +0200
committerAndreas Fischer <bantu@phpbb.com>2013-10-10 23:26:03 +0200
commit94b49d8a925e4bc7f10cbcf117ba81b071019b73 (patch)
tree9fcdef0455377e7f4c130578a0bef8e8d689e57b /phpBB/phpbb/db
parentb59131f558a6d0fe4c836e2658152c8698f0cd22 (diff)
downloadforums-94b49d8a925e4bc7f10cbcf117ba81b071019b73.tar
forums-94b49d8a925e4bc7f10cbcf117ba81b071019b73.tar.gz
forums-94b49d8a925e4bc7f10cbcf117ba81b071019b73.tar.bz2
forums-94b49d8a925e4bc7f10cbcf117ba81b071019b73.tar.xz
forums-94b49d8a925e4bc7f10cbcf117ba81b071019b73.zip
[ticket/11703] Make jQuery CDN switch more generic.
Config variable: load_jquery_cdn -> allow_cdn Template variable: S_JQUERY_FALLBACK -> S_ALLOW_CDN PHPBB3-11703
Diffstat (limited to 'phpBB/phpbb/db')
-rw-r--r--phpBB/phpbb/db/migration/data/v310/allow_cdn.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v310/allow_cdn.php b/phpBB/phpbb/db/migration/data/v310/allow_cdn.php
new file mode 100644
index 0000000000..2570998643
--- /dev/null
+++ b/phpBB/phpbb/db/migration/data/v310/allow_cdn.php
@@ -0,0 +1,28 @@
+<?php
+/**
+*
+* @package migration
+* @copyright (c) 2013 phpBB Group
+* @license http://opensource.org/licenses/gpl-license.php GNU Public License v2
+*
+*/
+
+namespace phpbb\db\migration\data\v310;
+
+class allow_cdn extends phpbb_db_migration
+{
+ static public function depends_on()
+ {
+ return array(
+ '\phpbb\db\migration\data\v310\jquery_update',
+ );
+ }
+
+ public function update_data()
+ {
+ return array(
+ array('config.add', array('allow_cdn', (int) $this->config['load_jquery_cdn'])),
+ array('config.remove', array('load_jquery_cdn')),
+ );
+ }
+}