diff options
author | Marc Alexander <admin@m-a-styles.de> | 2019-10-21 17:38:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-21 17:38:53 +0200 |
commit | dfcc744275553df699a33dabf51f2c071bedfaaf (patch) | |
tree | 78dfbe5c40a6f26bff388ed56a9ccedbd0c316fb /phpBB/phpbb/db/migration | |
parent | a671eaf25dcbc72f5e7ea1ffc852a59791e1de0b (diff) | |
parent | e78632767c3c9eb9fc8c2757d3e6e8b5f1d60ced (diff) | |
download | forums-dfcc744275553df699a33dabf51f2c071bedfaaf.tar forums-dfcc744275553df699a33dabf51f2c071bedfaaf.tar.gz forums-dfcc744275553df699a33dabf51f2c071bedfaaf.tar.bz2 forums-dfcc744275553df699a33dabf51f2c071bedfaaf.tar.xz forums-dfcc744275553df699a33dabf51f2c071bedfaaf.zip |
Merge pull request #5716 from marc1706/ticket/15437
[ticket/15437] Update jQuery and cookie consent to latest
Diffstat (limited to 'phpBB/phpbb/db/migration')
-rw-r--r-- | phpBB/phpbb/db/migration/data/v330/jquery_update.php | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v330/jquery_update.php b/phpBB/phpbb/db/migration/data/v330/jquery_update.php new file mode 100644 index 0000000000..f1ac6cdd41 --- /dev/null +++ b/phpBB/phpbb/db/migration/data/v330/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\v330; + +class jquery_update extends \phpbb\db\migration\migration +{ + public function effectively_installed() + { + return $this->config['load_jquery_url'] === '//ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js'; + } + + static public function depends_on() + { + return array( + '\phpbb\db\migration\data\v330\dev', + ); + } + + public function update_data() + { + return array( + array('config.update', array('load_jquery_url', '//ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js')), + ); + } + +} |