]>
Commit | Line | Data |
---|---|---|
553cd76a ER |
1 | --- dokuwiki-plugin-redirect-20100613/action.php 2011-02-06 20:26:05.000000000 +0200 |
2 | +++ dokuwiki-plugin-redirect-20100613/action.php 2012-05-30 16:28:11.153277934 +0300 | |
3 | @@ -34,7 +34,7 @@ | |
4 | ||
5 | if($ACT != 'show') return; | |
6 | ||
7 | - $redirects = confToHash(dirname(__FILE__).'/redirect.conf'); | |
8 | + $redirects = confToHash(DOKU_CONF.'/redirect.conf'); | |
9 | if($redirects[$ID]){ | |
10 | if(preg_match('/^https?:\/\//',$redirects[$ID])){ | |
11 | send_redirect($redirects[$ID]); | |
12 | --- dokuwiki-plugin-redirect-20100613/admin.php 2011-02-06 20:26:05.000000000 +0200 | |
13 | +++ dokuwiki-plugin-redirect-20100613/admin.php 2012-05-30 16:28:48.784865018 +0300 | |
14 | @@ -37,7 +37,7 @@ | |
15 | */ | |
16 | function handle() { | |
17 | if($_POST['redirdata']){ | |
18 | - if(io_saveFile(dirname(__FILE__).'/redirect.conf',$_POST['redirdata'])){ | |
19 | + if(io_saveFile(DOKU_CONF.'/redirect.conf',$_POST['redirdata'])){ | |
20 | msg($this->getLang('saved'),1); | |
21 | } | |
22 | } | |
23 | @@ -53,7 +53,7 @@ | |
24 | echo '<input type="hidden" name="do" value="admin" />'; | |
25 | echo '<input type="hidden" name="page" value="redirect" />'; | |
26 | echo '<textarea class="edit" rows="15" cols="80" style="height: 300px" name="redirdata">'; | |
27 | - echo formtext(io_readFile(dirname(__FILE__).'/redirect.conf')); | |
28 | + echo formtext(io_readFile(DOKU_CONF.'/redirect.conf')); | |
29 | echo '</textarea><br />'; | |
30 | echo '<input type="submit" value="'.$lang['btn_save'].'" class="button" />'; | |
31 | echo '</form>'; |