Last change
on this file since 25027 was 25027, checked in by jmt12, 12 years ago |
Adding the packages directory, and within it a configured version of dokuwiki all ready to run
|
File size:
797 bytes
|
Line | |
---|
1 | <?php
|
---|
2 | class ap_delete extends ap_manage {
|
---|
3 |
|
---|
4 | function process() {
|
---|
5 |
|
---|
6 | if (!$this->dir_delete(DOKU_PLUGIN.plugin_directory($this->manager->plugin))) {
|
---|
7 | $this->manager->error = sprintf($this->lang['error_delete'],$this->manager->plugin);
|
---|
8 | } else {
|
---|
9 | msg(sprintf($this->lang['deleted'],$this->plugin));
|
---|
10 | $this->refresh();
|
---|
11 | }
|
---|
12 | }
|
---|
13 |
|
---|
14 | function html() {
|
---|
15 | parent::html();
|
---|
16 |
|
---|
17 | ptln('<div class="pm_info">');
|
---|
18 | ptln('<h2>'.$this->lang['deleting'].'</h2>');
|
---|
19 |
|
---|
20 | if ($this->manager->error) {
|
---|
21 | ptln('<div class="error">'.str_replace("\n","<br />",$this->manager->error).'</div>');
|
---|
22 | } else {
|
---|
23 | ptln('<p>'.sprintf($this->lang['deleted'],$this->plugin).'</p>');
|
---|
24 | }
|
---|
25 | ptln('</div>');
|
---|
26 | }
|
---|
27 | }
|
---|
28 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.