1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-06 14:35:56 +02:00

[ticket/10155] Use new migration file for jQuery config update

This commit is contained in:
Matt Friedman 2013-03-15 09:51:34 -07:00
parent a38a92424d
commit 56914e72b7
2 changed files with 32 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class phpbb_db_migration_data_310_dev extends phpbb_db_migration
array('config.add', array('fulltext_sphinx_indexer_mem_limit', 512)),
array('config.add', array('load_jquery_cdn', 0)),
array('config.add', array('load_jquery_url', '//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js')),
array('config.add', array('load_jquery_url', '//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js')),
array('config.add', array('use_system_cron', 0)),

View File

@ -0,0 +1,31 @@
<?php
/**
*
* @package migration
* @copyright (c) 2012 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License v2
*
*/
class phpbb_db_migration_data_310_dev_p2 extends phpbb_db_migration
{
public function effectively_installed()
{
return !isset($this->config['load_jquery_url']);
}
static public function depends_on()
{
return array(
'phpbb_db_migration_data_310_dev',
);
}
public function update_data()
{
return array(
array('config.update', array('load_jquery_url', '//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js')),
);
}
}