Commit Graph

1352 Commits

Author SHA1 Message Date
Alex Schroeder
cf9e29a11f (CookieUsernameDelete): Changes to %NewCookie
are no longer needed.
2009-03-13 22:27:41 +00:00
Alex Schroeder
720095c6aa (DoFind): Switch from HighlightRegex to
SearchRegexp.
2009-03-13 15:40:16 +00:00
Alex Schroeder
22587be986 (DoFind): Switch from HighlightRegex to
SearchRegexp.
2009-03-13 15:26:42 +00:00
Alex Schroeder
10fd0a7aac (NewSearchFreeTextNewSearchRegexp):
Switch from HighlightRegex to SearchRegexp.
2009-03-13 15:21:18 +00:00
Alex Schroeder
4770e561d7 (SearchNearPages): Switch from
HighlightRegex to SearchRegexp.
2009-03-13 15:18:46 +00:00
Alex Schroeder
9bdae89099 (NewNamespaceGetRcLines): Strip rollbacks
for every namespace separately.
2009-03-08 23:44:54 +00:00
Alex Schroeder
c28f10ff70 (JournalRssGetRcLines): Don't just skip
minor edits. Read the last major edit instead, if your can.
2009-03-07 16:05:34 +00:00
Alex Schroeder
a90de0f8c9 (CreoleRule): Fix bugs introduced by the last fix. 2009-03-02 18:09:48 +00:00
Alex Schroeder
c592f6fb6a ($CreoleAdditionIndentedParagraphs):
New option.
(CreoleAdditionRule): Implement indented paragraphs rule.
2009-03-02 17:54:20 +00:00
Alex Schroeder
3d5865363c (CreoleRule): Use an elsif instead of an if
within the rules.
2009-03-02 17:53:43 +00:00
Alex Schroeder
90059eee1a (JournalRssGetRcLines): Skip minor edits
instead of messing with them.
2009-02-23 09:57:40 +00:00
Alex Schroeder
9fcaa5d96c New 2009-02-22 19:40:14 +00:00
Alex Schroeder
08d04cc650 (PrintAllReferers): Use GetPageLink
instead of using ScriptLink directly in order to fix the output
for pages containing a space.
2009-02-18 23:13:35 +00:00
Alex Schroeder
4a9e2545f8 Changed one of the [new:...] macro
to match $FreeLinkPattern instead of [^]:]+ as it interfered with
code examples containing regular expressions. As this is a macro,
it will remain tricky, unfortunately.
2009-02-13 10:29:21 +00:00
Alex Schroeder
da6e61c5eb (%MarkupForcedPairs): Added that to options. 2009-02-13 10:26:51 +00:00
Weakish Jiang
c2680f103e Use simple pattern match of dl. Actually a rollback to the dl pattern match in r1.14. Fixed the bug reported by bib. 2009-02-11 18:14:17 +00:00
Weakish Jiang
fd0ff5a59e Now multi urls within dt also work.
I'm wondering the usage of [^:] in the pattern matching.  Unlike mediawiki,
we don't allow dt and dd in the same line, thus maybe [^:] is not necessary.
2009-02-11 17:48:51 +00:00
Weakish Jiang
c6ab3e8317 t/creoleaddition.t: test for http://xxx in dt in definition list 2009-02-11 17:25:35 +00:00
Alex Schroeder
ce051c288e (FaqRule): Applied fix suggested by user bib on
the website.
2009-01-28 11:33:57 +00:00
Alex Schroeder
072222b033 (NewPageTrailBrowsePage): Handle more
parameters.
(UpdatePageTrail): Just use whitespace to separate the page names.
2009-01-22 00:33:40 +00:00
Alex Schroeder
9265d5e429 (NewGoogleCustomGetSearchLink):
Undo the use of ScriptLink.
2009-01-14 22:40:08 +00:00
Alex Schroeder
24af35679a (WriteRecentVisitors): Make the code
easier to read and eliminate a bug that caused the list of times
to grow indefinitely.
2009-01-06 22:23:36 +00:00
Alex Schroeder
43eec7c9da (AddRecentVisitor): Make sure we count
all the hits in the same second.
2009-01-05 00:26:43 +00:00
Brian Curry
4ba8b90614 * modules/poetry.pl (PoetryRule): Corrected handling of mid-line
whitespace. Prior to this, this module correctly handled pre-line
whitespace (i.e., indentation) and post-line whitespace (i.e., line
breaks), but not excess whitespace within an actual line.
2008-12-23 04:42:52 +00:00
Alex Schroeder
f1d03dee1c (FaqRule): Found some old modifications I made a
long time ago. Q: and A: must be at the beginning of the line.
2008-12-18 09:52:55 +00:00
Alex Schroeder
88000471e0 (DownloadSupportRule): Rewrite to fix a bug
introduced by the change to $FreeLinkPattern 2008-08-05.
2008-12-17 13:30:28 +00:00
Alex Schroeder
2df32424c3 (CreoleInit): Don't change $FreeLinkPattern as
that intereferes with bbcode.pl.
2008-12-16 01:17:43 +00:00
Alex Schroeder
70cb5732c3 Whitespace 2008-12-16 01:16:59 +00:00
Alex Schroeder
970c7f9cfd (ImageGetInternalUrl): Call FreeToNormal
on the argument.
2008-12-14 23:59:12 +00:00
Alex Schroeder
4e353458cd (NewCrossbarApplyRules): Do not apply the rule if we're currently
rendering the sidebar.
2008-12-12 22:44:39 +00:00
Alex Schroeder
696a44aa59 (NewCrossbarApplyRules): Do not apply the
rule if the text is an uploaded file.
2008-12-12 22:22:02 +00:00
Alex Schroeder
971ce0a55b *** empty log message *** 2008-12-12 13:34:41 +00:00
Alex Schroeder
2b44ac08ae (TocAfterApplyRule): Removed as a rule to be on
@MyAfterApplyRules.
(NewTocApplyRules): Moved code here and rewrote such as not to use
references where necessary.
2008-12-08 01:13:16 +00:00
Alex Schroeder
56249d5435 (CrossbarBeforeApplyRule): Removed as a rule
to be on @MyBeforeApplyRules.
(NewCrossbarApplyRules): Moved code here.
2008-12-08 01:11:53 +00:00
Alex Schroeder
69bf1561c7 ($GoogleCustomSearchEngine): New option.
(GetSearchLink): Replaced.
(NewGoogleCustomGetSearchLink): Hook into GetSearchLink and use
ScriptLink instead of specifying the HTML directly.
2008-12-06 01:28:39 +00:00
Brian Curry
fae5852035 * wiki.pl (PrintWikiToHTML): Moved "@MyBeforeApplyRules"-specific
code into the ApplyRules() routine. This corrects a number of
subtle issues with the Crossbar module: especially, the Crossbar
module's erroneous handling of uploaded files. (Thanks, Ingo
Belka!)
* modules/crossbar.pl (CrossbarBeforeApplyRule): Corrected this
module's erroneous handling of uploaded files.
(RunMyRulesTocCrossbar): New function, offloading a Crossbar-
specific hack from "toc.pl" into this file. (This is still...
slightly hacky, but a bit better.)
* modules/toc.pl (TocRule): Allowed more than one table of contents
per page. Before, this module only recognized the first "<toc...>"
markup for a Wiki page: all subsequent "<toc...>" markup for that
page was studiously ignored. Correcting this improves integration
with the Crossbar module.
(RunMyRulesToc): Removed a Crossbar-specific hack.
(TocAfterApplyRule): Allowed more than one table of contents.
($TocIsApplyingAutomaticRules): New option, providing slightly
finer-grained control over Table of Contents handling.
2008-12-03 11:46:48 +00:00
Alex Schroeder
39f8e2045e (NewNamespaceScriptUrl): Try and handle
the case of namespaces containing non-ASCII characters. This
should be legal, but lead to problems when generating links to
pages in such namespaces. The URL encoding of the non-ASCII
characters prevented the $InterSitePattern from matching. Instead
of using this regular expression, we now try and guess at the
string using URL constraints ([^/?&;=]+), URL decoding it, and
then checking the $InterSitePattern.
2008-12-02 23:45:41 +00:00
Brian Curry
c0d70cb033 * modules/recaptcha.pl (ReCaptchaQuestionAddTo): Patched with a
Wiki-provided correction, courtesy Bayle Shanks. Apparently, the
previous regular expression in this function failed to match the
Comment form's HTML. This patch corrects that! The reCAPTCHA widget
is now properly displayed by both the Comment and Edit forms.
Thanks, Bayle. (http://bayleshanks.com)
2008-11-27 06:00:25 +00:00
Brian Curry
cbd6e12934 * modules/forms.pl (FormsRule): Removed Sidebar-specific hack.
Thanks, Alex!
2008-11-25 09:59:32 +00:00
Alex Schroeder
484c144e33 Added greek. 2008-11-24 18:09:42 +00:00
Alex Schroeder
198da7fbc4 New 2008-11-24 17:40:20 +00:00
Brian Curry
68b3a7f49e * modules/toc.pl (TocRule): Corrected a minor issue re: integration
with the Sidebar and Crossbar modules.
2008-11-24 03:48:17 +00:00
Brian Curry
a140c1dd42 * modules/crossbar.pl (UserCanEditCrossbar): Deleted.
(CrossbarInit): Permit non-administrators to edit crossbar pages.
(GetEditFormCrossbar): Added a message describing crossbar usage.
2008-11-24 03:39:14 +00:00
Brian Curry
451dac19bc * modules/creole.pl (CreoleRule): Implemented handling of so-called
"interlinks" -- i.e., links to external Wikis via the "$InterMap"
page. (So, Creole syntax is now embeddable within interlinks!)
2008-11-24 01:34:48 +00:00
Brian Curry
78c55c5783 * modules/crossbar.pl: New module. Provides a sustainable
replacement for the Sidebar module, for all Sidebar users
requiring a cleaner integration of that module with other modules
such as "toc.pl" and "footnotes.pl". This new module also improves
Sidebar customizability by permitting users to place the "Crossbar"
at any position in any page.
* modules/forms.pl (FormsRules): Generalized so as to support both
the Sidebar and Crossbar modules.
* modules/toc.pl (RunMyRulesToc): Generalized so as to support both
the Sidebar and Crossbar modules.
* t/crossbar.t: New test suite, testing the Crossbar module.
2008-11-23 22:13:29 +00:00
Brian Curry
4a1cbfb1b4 * wiki.pl (SetHtmlEnvironmentContainer): Corrected a slight, but
significant, typo.
* modules/sidebar.pl: Reverted. I underestimated the scope of
changes needed to bring this module in line with recent, other
changes to the Table of Contents module. The good news is that the
reverted Sidebar module now works as expected for all modules except
the Table of Contents module; of course, the bad news is that the
reverted Sidebar module no longer works for the Table of Contents
module. (Unfortunately, we can't have both, here.) I will be
recommitting my changes to this module as a new module, therefore,
named "modules/crossbar.pl" -- sometime, soon. That new module
will (probably) break backwards compatibility with this module, but
will otherwise behave as expected... with all modules.
* t/sidebar.t: Prevented testing against the Table of Contents
module, as the Sidebar module is now known not to work with that
module.
2008-11-20 11:45:45 +00:00
Brian Curry
609cb49f86 * wiki.pl (PrintWikiToHTML): Slightly reordered function calls,
so as to optimize a few edge cases.
2008-11-16 01:00:04 +00:00
Brian Curry
52a47946a6 * wiki.pl (RegisterBlockLevelElement): Renamed to
SetHtmlEnvironmentContainer (and changed in every other module,
where called).
2008-11-15 21:24:32 +00:00
Brian Curry
7cfe623133 * wiki.pl (AddHtmlEnvironment): Corrected a minor regression.
Probably not a genuine issue... but one can never tell.
* modules/creole.pl (CloseHtmlEnvironmentsCreole): Removed.
* modules/creoleaddition.pl (CloseHtmlEnvironmentsCreoleAddition):
Removed.
* modules/poetry.pl (CloseHtmlEnvironmentsPoetry): Removed.
2008-11-15 12:53:25 +00:00
Brian Curry
af3c7169ea * modules/sidebar.pl: Refactored. This is a complete rewrite
removing all previous module-specific hacks. However, as it is a
rewrite, it may still have issues. (Fortunately, time is the mother
of invention and bug fixes.)
* modules/toc.pl: Refactored. This is a complete rewrite
removing all previous module-specific hacks. As with "sidebar.pl",
it may still have issues. That said -- I'm relatively proud of it,
and confident that it (should) stand up under rigorous scrutinies,
utilization, and brutalization.
* modules/forms.pl (FormsRule): Slightly revised, so as to comply
with the "sidebar.pl" refactoring.
2008-11-15 12:48:13 +00:00