]> sipb.mit.edu Git - ikiwiki.git/commitdiff
skeleton rename plugin
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 22 Jul 2008 02:30:43 +0000 (22:30 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 22 Jul 2008 02:30:43 +0000 (22:30 -0400)
IkiWiki/Plugin/remove.pm
debian/changelog
templates/editpage.tmpl

index 21028cde32c26a10210dfd3c41f1cd24efd8b919..bb5f56540f848b8b41dfd2ab9c07a85de358d637 100644 (file)
@@ -97,11 +97,11 @@ sub formbuilder (@) { #{{{
                        removal_confirm($q, $session, 0, $form->field("page"));
                }
                elsif ($form->submitted eq "Remove Attachments") {
-                       my @pages=$q->param("attachment_select");
-                       if (! @pages) {
+                       my @selected=$q->param("attachment_select");
+                       if (! @selected) {
                                error(gettext("Please select the attachments to remove."));
                        }
-                       removal_confirm($q, $session, 1, @pages);
+                       removal_confirm($q, $session, 1, @selected);
                }
        }
 } #}}}
@@ -145,6 +145,8 @@ sub sessioncgi ($$) { #{{{
                                push @files, IkiWiki::possibly_foolish_untaint($file);
                        }
 
+                       # TODO check attachment limits.
+
                        # Do removal, and update the wiki.
                        require IkiWiki::Render;
                        if ($config{rcs}) {
index 278e521556981961825dba3bd62088f2ea47426f..b53d846d7e54b3922b7607b399b44b0d10061256 100644 (file)
@@ -1,11 +1,13 @@
 ikiwiki (2.55) UNRELEASED; urgency=low
 
+  * remove: New plugin that adds the ability to remove pages via the web.
+    (Sponsored by The TOVA Company.)
+  * rename: New plugin that adds the ability to rename pages via the web.
+    (Sponsored by The TOVA Company.) (This one's for you, Kyle.)
   * prefix_directives enabled in doc wiki, all preprocessor directives
     converted. (Simon McVittie)
   * editpage: Don't show attachments link when attachments are disabled.
   * All rcs backends need to implement rcs_remove. (Done for svn, git).
-  * remove: New plugin that adds the ability to remove pages via the web.
-    (Sponsored by The TOVA Company.)
   * tag: Allow tagbase to be overridden by starting a tag with "./" or "/".
     (Simon McVittie)
   * Really fix bug with links to pages with names containing colons. 
index aa9436173131eaf02389968b906896424335cb85..1c30d1d8513a0484c2d6577ac3118e1f9b9cb876 100644 (file)
@@ -71,7 +71,7 @@ Optional comment about this change:<br />
 <tr><td><TMPL_VAR FIELD-SELECT><TMPL_VAR LINK></td><td><TMPL_VAR SIZE></td><td><TMPL_VAR MTIME></td></tr>
 </TMPL_LOOP>
 <TMPL_IF NAME="ATTACHMENT_LIST">
-<tr><td colspan="2"><TMPL_VAR FIELD-LINK><TMPL_VAR FIELD-REMOVE><TMPL_VAR FIELD-RENAME></td></tr>
+<tr><td colspan="2"><TMPL_VAR FIELD-LINK><TMPL_VAR FIELD-RENAME><TMPL_VAR FIELD-REMOVE></td></tr>
 </TMPL_IF>
 </table>
 </div>