diff options
author | Marc Alexander <admin@m-a-styles.de> | 2018-12-09 15:43:01 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2018-12-09 15:43:01 +0100 |
commit | 97c5861d5907c7476f3cd6cebcd690d04b64a5d9 (patch) | |
tree | 3046911995b7e33d63e5f9f4810b5d5c72bd98bd /phpBB/phpbb/db | |
parent | aebeb11d53375c94fa6975ab952e1c316b921afe (diff) | |
download | forums-97c5861d5907c7476f3cd6cebcd690d04b64a5d9.tar forums-97c5861d5907c7476f3cd6cebcd690d04b64a5d9.tar.gz forums-97c5861d5907c7476f3cd6cebcd690d04b64a5d9.tar.bz2 forums-97c5861d5907c7476f3cd6cebcd690d04b64a5d9.tar.xz forums-97c5861d5907c7476f3cd6cebcd690d04b64a5d9.zip |
[security/229] Update jQuery CDN link
SECURITY-229
Diffstat (limited to 'phpBB/phpbb/db')
-rw-r--r-- | phpBB/phpbb/db/migration/data/v32x/jquery_update.php | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v32x/jquery_update.php b/phpBB/phpbb/db/migration/data/v32x/jquery_update.php new file mode 100644 index 0000000000..f35cac7a0d --- /dev/null +++ b/phpBB/phpbb/db/migration/data/v32x/jquery_update.php @@ -0,0 +1,37 @@ +<?php +/** + * + * This file is part of the phpBB Forum Software package. + * + * @copyright (c) phpBB Limited <https://www.phpbb.com> + * @license GNU General Public License, version 2 (GPL-2.0) + * + * For full copyright and license information, please see + * the docs/CREDITS.txt file. + * + */ + +namespace phpbb\db\migration\data\v32x; + +class jquery_update extends \phpbb\db\migration\migration +{ + public function effectively_installed() + { + return $this->config['load_jquery_url'] !== '//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js'; + } + + static public function depends_on() + { + return array( + '\phpbb\db\migration\data\v32x\v325rc1', + ); + } + + public function update_data() + { + return array( + array('config.update', array('load_jquery_url', '//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js')), + ); + } + +} |