diff options
| author | Nils Adermann <naderman@naderman.de> | 2013-10-10 15:25:51 -0700 |
|---|---|---|
| committer | Nils Adermann <naderman@naderman.de> | 2013-10-10 15:25:51 -0700 |
| commit | 63f327853a4c270ccf8362c01efb707e89b982d6 (patch) | |
| tree | 140a90a742ba883b233c6de153fdc163d095d016 /phpBB/phpbb/db/migration/data | |
| parent | 12eaa82aff6b7f142e70f1bacc399d47010d8ee0 (diff) | |
| parent | 51cc7155041c95ca47147072c1c04449ad0bcf67 (diff) | |
| download | forums-63f327853a4c270ccf8362c01efb707e89b982d6.tar forums-63f327853a4c270ccf8362c01efb707e89b982d6.tar.gz forums-63f327853a4c270ccf8362c01efb707e89b982d6.tar.bz2 forums-63f327853a4c270ccf8362c01efb707e89b982d6.tar.xz forums-63f327853a4c270ccf8362c01efb707e89b982d6.zip | |
Merge pull request #1569 from bantu/ticket/11703
[ticket/11703] Make jQuery CDN switch more generic.
Diffstat (limited to 'phpBB/phpbb/db/migration/data')
| -rw-r--r-- | phpBB/phpbb/db/migration/data/v310/allow_cdn.php | 33 |
1 files changed, 33 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..aa471df6e7 --- /dev/null +++ b/phpBB/phpbb/db/migration/data/v310/allow_cdn.php @@ -0,0 +1,33 @@ +<?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\migration +{ + public function effectively_installed() + { + return isset($this->config['allow_cdn']); + } + + 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')), + ); + } +} |
