summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
AgeCommit message (Collapse)Author
2009-01-26hook function names should be the same as the hook nameJoey Hess
2009-01-27po: make the "backlinks involve dependencies" feature optionalintrigeri
It can now be configured with the po_strictly_refresh_backlinks setting. Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-27revert renamepage's hook original nameintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-26po: bring back a useful use of scalarintrigeri
... that was removed in 68869d664b978b063c9181d024edb34a63306c33 Without this scalar, a two-cells array is passed to $template->param, which builds a hash with an odd number of elements. Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-26only pass named parameters to the canremove hookintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-26only pass named parameters to the canrename hookintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-26po(formbuilder): stop hunting down non-existent casesintrigeri
After some thinking about it, I can't find why the type of a page being created in the CGI could be restricted to po. So the previous case seems enough. Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-26add mising hooks and fix syntax errorJoey Hess
2009-01-26remove unnecessary returnsJoey Hess
check_canremove/canrename is called only for its side effect (of failing if removal is not allowed), its return value is never used and returning something makes that unclear
2009-01-26remove redundant useJoey Hess
use is file-scoped so warnings and strict are already enabled inside the second package, and IkiWiki is already loaded (though not imported into this context)
2009-01-26non-code changesJoey Hess
2009-01-26more unnecessary parensJoey Hess
2009-01-26avoid keeping running if a DOS attack is possibleJoey Hess
2009-01-26remove unnecessary parensJoey Hess
2009-01-26another useless use of scalarJoey Hess
scalar(undef) is undef, so using scalar here had no effect. Instead make the function return "", probably avoiding an uninitialized value warning.
2009-01-26remove useless uses of scalarJoey Hess
if (scalar @array) is written idiomatically in perl as if (@array).
2009-01-26improve some englishJoey Hess
I'm still not happy with the clarity of this warning message. I don't understand when it could happen or why a warning is needed.
2009-01-26avoid standalone -e or foo syntaxJoey Hess
I prefer to use either of the other two syntaxes perl offers, and not this one.
2009-01-26avoid mixing english with translationJoey Hess
"google search" is english which would get mixed in with translated text. Instead, usr just the plugin name.
2009-01-26Merge branch 'master' into poJoey Hess
2009-01-25git: Fix malformed utf8 recieved from git.Joey Hess
If git log outputs malformed utf8 in, eg, usernames, detect it and fix it up. This avoids commits such as f71abc92aa279fbe0b7578b8c4752d775dd4a259 breaking things.
2009-01-25format moderation queue only at end, avoid O(N^3) bugJoey Hess
It was calling format hooks for each comment on the page. When relativedate is enabled, that made it insert <script> tags for each comment. And the browser loaded the same script over and over, which was slow on its own. But that was nothing compared to running the onload even over and over.. especially since the hook system added a new call to the hook each time it loaded. For a page with 10 comments, that caused the relativedate DOM parsing code to run 1000 times, I think. Anyway, it was sloow. Now it runs once.
2009-01-25add reject all marked defer checkboxJoey Hess
2009-01-25sort comment queue by time, newest firstJoey Hess
2009-01-25add a button to prefs page for comment moderationJoey Hess
2009-01-25clean up comment previewJoey Hess
Remove actions from it, and avoid a broken title link.
2009-01-25comments: Add a moderation web interface.Joey Hess
2009-01-25comments: If comment content checks fail, store the comment (in ↵Joey Hess
.ikiwiki/comments_pending) for moderator review.
2009-01-25blogspam: Fix use of blogspam_options and blogspam_server config settings.Joey Hess
2009-01-22typoJoey Hess
2009-01-22fix uninitialized value warningsJoey Hess
I suspect these are only triggered by spammers.
2009-01-22fix typoJoey Hess
2009-01-21img: only provide alt text if it was specifiedGabriel McManus
if suitable alternate text is unknown, then it should not be given. empty alt text is suitable mainly for purely decorative images. (cherry picked from commit 3cd7f67f0cf894f4fd5ba16f68e82e4f7bdbfdc5)
2009-01-20fix removal form displayJoey Hess
The form was misdisplayed when displayed via comment removal.
2009-01-19blogspam: Log spam info on failure.Joey Hess
2009-01-19remove cansave plugin, now replaced by Joey's checkcontent oneintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-19make checkcontent compatible with hooks that need the full contentintrigeri
Always pass the full (modified) content in `content` named parameter. When the user edits an existing wiki page, also pass a `diff` named parameter, which includes only the lines that they added to the page, or modified. Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-18fix previous buggy mergeintrigeri
2009-01-18Merge commit 'upstream/master' into prv/pointrigeri
Conflicts: t/syntax.t
2009-01-17blogspam api now supports homepage linkJoey Hess
2009-01-17load rpc xml lib on the flyJoey Hess
This way, enabling the plugin via websetup is safe, it can't leave ikiwiki in a broken state.
2009-01-17use short names in comittypeJoey Hess
Use mtn for monontone and hg for mercurial. The long names cause ugly formatting in recentchanges, which has CSS that only allows a few characters for the commit type column.
2009-01-17Merge commit 'upstream/master' into prv/pointrigeri
Conflicts: IkiWiki/Plugin/editpage.pm IkiWiki/Plugin/skeleton.pm.example doc/plugins/write.mdwn t/syntax.t
2009-01-16blogspam: New plugin, adding spam filtering for page editing / comment ↵Joey Hess
posting using the BlogSpam.net API.
2009-01-16make postcomment() pagespecs work while in checkcontentJoey Hess
2009-01-16add new hook to skeletonJoey Hess
2009-01-16checkcontent: New hook, can be used to implement arbitrary content filters, ↵Joey Hess
including spam filters.
2009-01-16remove xxx commentJoey Hess
IIRC I analised this and the code is right
2009-01-16po: when possible, disable use of Text::WrapI18N in po4a; else warn about ↵intrigeri
too old po4a Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-16po(change): re-render all rendered files in one corner caseintrigeri
All meta titles are first extracted at scan time, i.e. before we turn PO files back into translated markdown; escaping of double-quotes in PO files breaks the meta plugin's parsing enough to save ugly titles to %pagestate at this time. Then, at render time, every page's passes on row through the Great Rendering Chain (filter->preprocess->linkify->htmlize), and the meta plugin's preprocess hook is this time in a position to correctly extract the titles from slave pages. This is, unfortunately, too late: if the page A, linking to the page B, is rendered before B, it will display the wrongly-extracted meta title as the link text to B. On the one hand, such a corner case only happens on rebuild: on refresh, every rendered page is fixed to contain correct meta titles. On the other hand, it can take some time to get every page fixed. We therefore re-render every rendered page after a rebuild to fix them at once. As this more or less doubles the time needed to rebuild the wiki, we do so only when really needed. Signed-off-by: intrigeri <intrigeri@boum.org>