]> git.wincent.com - wikitext.git/commit
Teach _Wikitext_append_hyperlink to check the autolink setting
authorWincent Colaiuta <win@wincent.com>
Thu, 7 May 2009 23:03:44 +0000 (01:03 +0200)
committerWincent Colaiuta <win@wincent.com>
Thu, 7 May 2009 23:03:44 +0000 (01:03 +0200)
commit43b9db8c370a19e28d3ba54be15568611fc1d51d
tree278b64d698ef99e06eb63aa9275b9a28dadf5650
parent0f4fbf0661c18c34048810490b106646687c6e1e
Teach _Wikitext_append_hyperlink to check the autolink setting

Rather than checking the autolink setting in the numerous sites
where _Wikitext_append_hyperlink is called, move the check into
the function itself, and pass a flag in specifying whether to
perform the check.

The overall saving here is about 8 lines thanks to the eliminated
repetition.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
ext/parser.c