|
Re: Restore 'has edit conflicts - skipped' - how to avoid: msg#00030web.wiki.phpwiki.talk
On Saturday, December 6, 2003, at 07:34 pm, Micki Kaufman wrote: Hi there. Hi Micki, Admittedly the loadsave functions do need some more work. In the mean time, here's a quick hack I whipped up to do exactly what you need. Add this line to PhpWikiAdministration: <?plugin WikiForm action=upload buttontext="Upload & OVERWRITE" overwrite=1 ?> Patch lib/plugin/WikiForm.php with the enclosed patch. It should go without saying, but here it is anyway: BE CAREFUL you don't do something silly like upload the wrong file! :) Carsten Index: WikiForm.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/WikiForm.php,v retrieving revision 1.9 diff -U2 -r1.9 WikiForm.php --- WikiForm.php 26 Feb 2003 01:56:52 -0000 1.9 +++ WikiForm.php 7 Dec 2003 17:08:54 -0000 @@ -43,4 +43,5 @@ 'default' => false, 'buttontext' => false, + 'overwrite' => false, // HACK ALERT 'size' => 50); } @@ -107,4 +108,8 @@ $input = HTML::input($input); + if ($overwrite) + $input->pushContent(HTML::input(array('name' => 'overwrite', + 'value' => 1, + 'type' => 'hidden'))); $input->addTooltip($buttontext); $button = Button('submit:', $buttontext, $class); ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: installing phpwiki on a remote server is a nightmare !!: 00030, Carsten Klapp |
|---|---|
| Next by Date: | Re: Restore 'has edit conflicts - skipped' - how to avoid: 00030, Micki Kaufman |
| Previous by Thread: | Restore 'has edit conflicts - skipped' - how to avoidi: 00030, Micki Kaufman |
| Next by Thread: | Re: Restore 'has edit conflicts - skipped' - how to avoid: 00030, Micki Kaufman |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |