Commit Graph

1357 Commits

Author SHA1 Message Date
Alex Schroeder
7a18aa9361 (NewTagSave, NewTagDeletePage): Eliminate and
merge with NewTagSave and NewTagDeletePage respectively.
(TagFind, NewTagGrepFiltered, NewTagSearchString): New functions
to use the tag file while searching.
2009-03-21 01:36:26 +00:00
Alex Schroeder
190de501a0 ($TagFeed, $TagFeedIcon): New options.
(TagsInit, TagsGetLink): New
(TagsRule): Will now print RSS icon and link to a feed as well, if
an icon URL has been provided.
(NewTagSave, TagIndex): Hook into Save() and index the pages.
(NewTagDeletePage, TagDeletePage): Hook into DeletePage() and
remove tags and infos when pages are deleted.
2009-03-20 13:59:32 +00:00
Alex Schroeder
215a74072c Rename $TagRssIcon to $TagFeedIcon.
(NewTagSave, TagIndex): Hook into Save() and index the pages.
2009-03-20 11:20:57 +00:00
Alex Schroeder
bc34c50966 ($TagFeed, $TagRssIcon): New options.
(TagsInit, TagsGetLink): New
(TagsRule): Will now print RSS icon and link to a feed as well, if
an icon URL has been provided.
2009-03-20 10:06:28 +00:00
Alex Schroeder
310c36e217 (MarkupRule): Fixed markup rules to get the
[[foo]]'s apostrophe correct.
2009-03-13 22:28:29 +00:00
Alex Schroeder
e0f5335ee7 (CookieUsernameDelete): Changes to %NewCookie
are no longer needed.
2009-03-13 22:27:41 +00:00
Alex Schroeder
fcd78fde21 (DoFind): Switch from HighlightRegex to
SearchRegexp.
2009-03-13 15:40:16 +00:00
Alex Schroeder
4edf294530 (DoFind): Switch from HighlightRegex to
SearchRegexp.
2009-03-13 15:26:42 +00:00
Alex Schroeder
5073bcc996 (NewSearchFreeTextNewSearchRegexp):
Switch from HighlightRegex to SearchRegexp.
2009-03-13 15:21:18 +00:00
Alex Schroeder
fe17b993be (SearchNearPages): Switch from
HighlightRegex to SearchRegexp.
2009-03-13 15:18:46 +00:00
Alex Schroeder
c3a84e9266 (NewNamespaceGetRcLines): Strip rollbacks
for every namespace separately.
2009-03-08 23:44:54 +00:00
Alex Schroeder
2b1e043046 (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
b66f91a5c9 (CreoleRule): Fix bugs introduced by the last fix. 2009-03-02 18:09:48 +00:00
Alex Schroeder
98551d3005 ($CreoleAdditionIndentedParagraphs):
New option.
(CreoleAdditionRule): Implement indented paragraphs rule.
2009-03-02 17:54:20 +00:00
Alex Schroeder
7eebff9652 (CreoleRule): Use an elsif instead of an if
within the rules.
2009-03-02 17:53:43 +00:00
Alex Schroeder
d291c268d8 (JournalRssGetRcLines): Skip minor edits
instead of messing with them.
2009-02-23 09:57:40 +00:00
Alex Schroeder
7fbf49ec4a New 2009-02-22 19:40:14 +00:00
Alex Schroeder
6d03338de6 (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
67b6bd741a 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
312f8568cf (%MarkupForcedPairs): Added that to options. 2009-02-13 10:26:51 +00:00
Alex Schroeder
c6d703e8db 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
Alex Schroeder
934cf467b0 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
Alex Schroeder
5279a9faac t/creoleaddition.t: test for http://xxx in dt in definition list 2009-02-11 17:25:35 +00:00
Alex Schroeder
ce0a3bd266 (FaqRule): Applied fix suggested by user bib on
the website.
2009-01-28 11:33:57 +00:00
Alex Schroeder
3a0487c2bb (NewPageTrailBrowsePage): Handle more
parameters.
(UpdatePageTrail): Just use whitespace to separate the page names.
2009-01-22 00:33:40 +00:00
Alex Schroeder
0c01fb8a00 (NewGoogleCustomGetSearchLink):
Undo the use of ScriptLink.
2009-01-14 22:40:08 +00:00
Alex Schroeder
ff358d3f4b (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
9b3c2e1b87 (AddRecentVisitor): Make sure we count
all the hits in the same second.
2009-01-05 00:26:43 +00:00
Alex Schroeder
77f0942705 * 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
e7e77ee95c (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
ebf4f74ed2 (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
806556dea4 (CreoleInit): Don't change $FreeLinkPattern as
that intereferes with bbcode.pl.
2008-12-16 01:17:43 +00:00
Alex Schroeder
b2416bf24b Whitespace 2008-12-16 01:16:59 +00:00
Alex Schroeder
4c4388d65b (ImageGetInternalUrl): Call FreeToNormal
on the argument.
2008-12-14 23:59:12 +00:00
Alex Schroeder
fc3a893fd6 (NewCrossbarApplyRules): Do not apply the rule if we're currently
rendering the sidebar.
2008-12-12 22:44:39 +00:00
Alex Schroeder
6dada209d9 (NewCrossbarApplyRules): Do not apply the
rule if the text is an uploaded file.
2008-12-12 22:22:02 +00:00
Alex Schroeder
baded06cd1 *** empty log message *** 2008-12-12 13:34:41 +00:00
Alex Schroeder
b44202933a (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
7afc148e4f (CrossbarBeforeApplyRule): Removed as a rule
to be on @MyBeforeApplyRules.
(NewCrossbarApplyRules): Moved code here.
2008-12-08 01:11:53 +00:00
Alex Schroeder
949abb412d ($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
Alex Schroeder
96d9b888e5 * 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
7634327ab4 (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
Alex Schroeder
2f75bbac87 * 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
Alex Schroeder
60cde0e507 * modules/forms.pl (FormsRule): Removed Sidebar-specific hack.
Thanks, Alex!
2008-11-25 09:59:32 +00:00
Alex Schroeder
219eac8c38 Added greek. 2008-11-24 18:09:42 +00:00
Alex Schroeder
76c0699102 New 2008-11-24 17:40:20 +00:00
Alex Schroeder
67e80f3960 * modules/toc.pl (TocRule): Corrected a minor issue re: integration
with the Sidebar and Crossbar modules.
2008-11-24 03:48:17 +00:00
Alex Schroeder
57b903d650 * 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
Alex Schroeder
cc8c6f4619 * 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
Alex Schroeder
bbfdf96d5b * 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