mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[feature/plupload/integration] Integration of Plupload
This commit is a highly-refactored and up-to-date version of Fyorl's work which was part of his Google Summer of Code 2012 project "Attachment Improvements". PHPBB3-10929
This commit is contained in:
@@ -27,6 +27,7 @@ class alpha1 extends \phpbb\db\migration\migration
|
||||
'\phpbb\db\migration\data\v310\namespaces',
|
||||
'\phpbb\db\migration\data\v310\notifications_cron',
|
||||
'\phpbb\db\migration\data\v310\notification_options_reconvert',
|
||||
'\phpbb\db\migration\data\v310\plupload',
|
||||
'\phpbb\db\migration\data\v310\signature_module_auth',
|
||||
'\phpbb\db\migration\data\v310\softdelete_mcp_modules',
|
||||
'\phpbb\db\migration\data\v310\teampage',
|
||||
|
32
phpBB/phpbb/db/migration/data/v310/plupload.php
Normal file
32
phpBB/phpbb/db/migration/data/v310/plupload.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package migration
|
||||
* @copyright (c) 2013 phpBB Group
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
|
||||
namespace phpbb\db\migration\data\v310;
|
||||
|
||||
class plupload extends \phpbb\db\migration\migration
|
||||
{
|
||||
public function effectively_installed()
|
||||
{
|
||||
return isset($this->config['plupload_last_gc']) &&
|
||||
isset($this->config['plupload_salt']);
|
||||
}
|
||||
|
||||
static public function depends_on()
|
||||
{
|
||||
return array('\phpbb\db\migration\data\310\dev');
|
||||
}
|
||||
|
||||
public function update_data()
|
||||
{
|
||||
return array(
|
||||
array('config.add', array('plupload_last_gc', 0)),
|
||||
array('config.add', array('plupload_salt', unique_id())),
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user