Skip to content

Commit

Permalink
MDL-42459 Atto: Bye bye - see you in the plugins db!
Browse files Browse the repository at this point in the history
  • Loading branch information
Damyon Wiese committed Oct 22, 2013
1 parent 83a3e35 commit 775a32c
Show file tree
Hide file tree
Showing 336 changed files with 42 additions and 8,878 deletions.
8 changes: 1 addition & 7 deletions lib/classes/plugin_manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -914,12 +914,6 @@ public static function standard_plugins_list($type) {
'comments', 'file', 'offline', 'editpdf'
),

'atto' => array(
'bold', 'clear', 'html', 'image', 'indent', 'italic', 'link',
'media', 'orderedlist', 'outdent', 'strike', 'title',
'underline', 'unlink', 'unorderedlist'
),

'auth' => array(
'cas', 'db', 'email', 'fc', 'imap', 'ldap', 'manual', 'mnet',
'nntp', 'nologin', 'none', 'pam', 'pop3', 'radius',
Expand Down Expand Up @@ -970,7 +964,7 @@ public static function standard_plugins_list($type) {
),

'editor' => array(
'textarea', 'tinymce', 'atto'
'textarea', 'tinymce'
),

'enrol' => array(
Expand Down
37 changes: 37 additions & 0 deletions lib/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2688,6 +2688,43 @@ function xmldb_main_upgrade($oldversion) {
// Main savepoint reached.
upgrade_main_savepoint(true, 2013100901.00);
}
if ($oldversion < 2013102200.00) {
$params = array('plugin' => 'editor_atto', 'name' => 'version');
$attoversion = $DB->get_record('config_plugins',
$params,
'value',
IGNORE_MISSING);

if ($attoversion) {
$attoversion = floatval($attoversion->value);
}
// Only these versions that were part of 2.6 beta should be removed.
// Manually installed versions of 2.5 - or later releases for 2.6 installed
// via the plugins DB should not be uninstalled.
if ($attoversion && $attoversion > 2013051500.00 && $attoversion < 2013102200.00) {
// Remove all other associated config.
unset_all_config_for_plugin('editor_atto');
unset_all_config_for_plugin('atto_bold');
unset_all_config_for_plugin('atto_clear');
unset_all_config_for_plugin('atto_html');
unset_all_config_for_plugin('atto_image');
unset_all_config_for_plugin('atto_indent');
unset_all_config_for_plugin('atto_italic');
unset_all_config_for_plugin('atto_link');
unset_all_config_for_plugin('atto_media');
unset_all_config_for_plugin('atto_orderedlist');
unset_all_config_for_plugin('atto_outdent');
unset_all_config_for_plugin('atto_strike');
unset_all_config_for_plugin('atto_title');
unset_all_config_for_plugin('atto_underline');
unset_all_config_for_plugin('atto_unlink');
unset_all_config_for_plugin('atto_unorderedlist');

}

// Main savepoint reached.
upgrade_main_savepoint(true, 2013102200.00);
}

return true;
}
35 changes: 0 additions & 35 deletions lib/editor/atto/classes/plugininfo/atto.php

This file was deleted.

49 changes: 0 additions & 49 deletions lib/editor/atto/db/install.php

This file was deleted.

27 changes: 0 additions & 27 deletions lib/editor/atto/db/subplugins.php

This file was deleted.

25 changes: 0 additions & 25 deletions lib/editor/atto/lang/en/editor_atto.php

This file was deleted.

123 changes: 0 additions & 123 deletions lib/editor/atto/lib.php

This file was deleted.

26 changes: 0 additions & 26 deletions lib/editor/atto/plugins/bold/lang/en/atto_bold.php

This file was deleted.

Loading

0 comments on commit 775a32c

Please sign in to comment.