[Home]WikiBugs/MoreVerboseSubValidId

UseModWiki | WikiBugs | RecentChanges | Preferences

Inspired and thanks to CWICK, adds explanations to the last two cases without them.

sub ValidId {
...
  if (!($id =~ m|^$FreeLinkPattern$|)) {
    - return Ts('Invalid Page %s', $id);
    + return Ts('Invalid Page %s  (does not match FreeLinkPattern', $id);
  }
...
  } else {
    if (!($id =~ /^$LinkPattern$/)) {
      - return Ts('Invalid Page %s', $id);
      + return Ts('Invalid Page %s (does not match LinkPattern)', $id);
    }
...

--JuanmaMP


UseModWiki | WikiBugs | RecentChanges | Preferences
Edit text of this page | View other revisions | Search MetaWiki
Last edited September 22, 2009 8:32 pm by 38.Red-80-58-205.staticIP.rima-tde.net (diff)
Search: