[Home]WikiPatches/DoPageLockMinorTweak

UseModWiki | WikiPatches | RecentChanges | Preferences

Fixed in 1.0.5 -- MarkusLude

Header according to parameter:

Patch

sub DoPageLock {
  my ($fname, $id);

-  print &GetHeader('', T('Set or Remove page edit lock'), '');
+  if (!&GetParam("set", 1)) {
+    print &GetHeader('', Ts('Removing page edit lock'), '');
+  } else {
+    print &GetHeader('', Ts('Setting page edit lock'), '');
+  }
--JuanmaMP

Comments

For consistence this should be changed then in DoEditLock?(), too. -- MarkusLude

You're right. I was keeping in mind and It was only an attempt while I was thinking which code will go to the core code, and which code has only an optional interest.
Thanks for the comment!. -- JuanmaMP


UseModWiki | WikiPatches | RecentChanges | Preferences
Edit text of this page | View other revisions | Search MetaWiki
Last edited July 30, 2012 6:42 pm by JuanmaMP (diff)
Search: