Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 156... Línea 156...
156
        $plugin = $pluginman->get_plugin_info($component);
156
        $plugin = $pluginman->get_plugin_info($component);
Línea 157... Línea 157...
157
 
157
 
158
        if (is_null($plugin)) {
158
        if (is_null($plugin)) {
159
            cli_writeln('Unknown plugin: ' . $component);
159
            cli_writeln('Unknown plugin: ' . $component);
160
        } else {
160
        } else {
Línea 161... Línea 161...
161
            $pluginstring = $plugin->component . "\t" . $plugin->displayname;
161
            $pluginstring = $component . "\t" . $plugin->displayname;
162
 
162
 
163
            if ($pluginman->can_uninstall_plugin($plugin->component)) {
163
            if ($pluginman->can_uninstall_plugin($component)) {
164
                if ($options['run']) {
164
                if ($options['run']) {
165
                    cli_writeln('Uninstalling: ' . $pluginstring);
165
                    cli_writeln('Uninstalling: ' . $pluginstring);
166
                    $progress = new progress_trace_buffer(new text_progress_trace(), true);
166
                    $progress = new progress_trace_buffer(new text_progress_trace(), true);
167
                    $pluginman->uninstall_plugin($plugin->component, $progress);
167
                    $pluginman->uninstall_plugin($component, $progress);
168
                    $progress->finished();
168
                    $progress->finished();
169
                    cli_write($progress->get_buffer());
169
                    cli_write($progress->get_buffer());
170
                } else {
170
                } else {