| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This changes the cache logic for metadata. It introduces a new mode that
tries to avoid rendering the page again for simple requests but still
updates the metadata when the page has been changed (but not when the
cache timeout has been reached or purge is used). It simply compares the
time of the last rendering with the last modified time of the page.
The old boolean $render parameter has been changed into an int with
three possible values. Compatibility for the old parameter is provided
using a check with is_numeric using the following mapping:
- false is still don't render (0 is the new value for that)
- true is using that new render logic which means that many plugins will
still work unchanged even if they request a lot of data using
$render=true (1 is the new value for that providing full compatibility
in the case 1 has been used instead of true)
The default value for p_get_first_heading is now that new simple cache
logic, the default value for getting metadata is the cache logic which
should be used with care but is the only way to request (rendered)
metadata that can change because of plugin installations or upgrades.
|
|
|
|
|
|
|
|
|
|
|
| |
Anika's merge did not pul in the individual patches as one would expect.
Then I messed up when trying to fix this by merging with danny's repo
again but used the wrong branch. So we're still missing two patches. To
have them apply cleanly I have to revert Anika's merge here. Another
merge for the missing two patches will follow.
This reverts commit b17e20ac9cca30b612968d02f06fa9c5df5c01f0.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
As of VIM 7.3 it is no longer possible to specify the encoding in the
modeline. This gives an error message whenever such a file is opened,
thus this commit removes the enc setting from the modeline.
|
| |
|
|
|
|
| |
darcs-hash:20091113123458-e4919-d4841ea9c627059a4afa8e0032dd889b3cc579cb.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Changes of behaviour are:
* Allow the user name, title & description \e2\80\9c0\e2\80\9d
* Default to Port 443 if using HTTPS
* Set $INFO['isadmin'] and $INFO['ismanager'] to \e2\80\9cfalse\e2\80\9d even if no user is
logged in
* Do not pass empty fragment field in the event data for event
ACTION_SHOW_REDIRECT
* Handle chunked encoding in HTTPClient
darcs-hash:20091104100115-e4919-5cf6397d4a457e3f98a8ca49fbdab03f2147721d.gz
|
|
|
|
| |
darcs-hash:20091103161002-9a5f4-2114938a7e62a924b9fe424b63584a4747286563.gz
|
|
|
|
| |
darcs-hash:20090528215438-6942e-bf1b875e689ade6bd1a17e3d812ce16bf35c84a6.gz
|
|
|
|
|
|
| |
Ignore-this: b580164b5ba3eca3120bc35d8680c9fc
darcs-hash:20090410184955-7ad00-480cd8c07a994ca4ac2e71f7f8dd294276f2d98d.gz
|
|
|
|
| |
darcs-hash:20090228232625-7ad00-d0f0e8569d60f65d511994b401dd4c469bc44f60.gz
|
|
|
|
| |
darcs-hash:20090228195740-7ad00-7a37cb3f9d3921ee630361eae3e90e5a8466642c.gz
|
|
|
|
| |
darcs-hash:20090227164755-7ad00-c3ce407acd4f397e84e18f1bd18d57f154e283e2.gz
|
|
|
|
| |
darcs-hash:20081213090400-7ad00-4e21cd75978bb07513f32f5d750658e8d777c59e.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
and/or navigation links
$conf['useheading'] values are now:
- 0 : off, use page name in link text
- 'content' : use first heading text for links in wiki page content
- 'navigation' : use first heading text for links in non-page content, e.g. breadcrumps, backlinks, search results, etc.
- 1 : use first heading text in all links
(for backwards compatibility, any other values are mapped to 0 or 1 by empty() function.)
$conf['useheading'] value should now be checked using the useHeading($linktype) function,
where linktype can be "content" or "navigation"
darcs-hash:20081119140758-f07c6-6e26456d50dcecc949fada31b0d4e72877fde1cc.gz
|
|
|
|
| |
darcs-hash:20080118224834-7ad00-bda8d919c3fdf4bafe8509dca35aa437b38e1ac6.gz
|
|
|
|
|
|
|
|
|
|
|
| |
The use of realpath() to clean up relative file names caused some
trouble in certain setups relying on symlinks or having restricitve
file structure setups.
This patch replaces all realpath() calls with a PHP only replacement
which should solve those problems.
darcs-hash:20070930184250-7ad00-512ff04c95f57fc9eaf104f80372237a3c94286f.gz
|
|
|
|
| |
darcs-hash:20070925201030-6942e-7c2ac56c877cb6772d500b2391ddc490dc6fdec5.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch introduces a tpl_toc() function which can be used to freely place
the Table of Contents in a template. When used, tpl_content should be called
with a parameter of false to supress the automatic TOC placement.
Note: if tpl_toc() us run *before* tpl_content(), TOCs will not work in the
preview. A work around is to run tpl_content() in a output buffer first.
This patch also adds a getTOC() function for admin plugins which allows plugin
authors to put create their own TOC which will be placed correctly in the
template. A convenience function html_mktocitem() is available.
The config manager was adjusted to make ue of this new feature, but some bugs
might remain.
darcs-hash:20070805132405-7ad00-77d2c3cdf66cc62b2d408cc6580f938636a109af.gz
|
|
|
|
|
|
| |
capital letters (<HTML>+<PHP>)
darcs-hash:20070517233213-d5083-9dbccf77383575912ad75533ca690302557e0f79.gz
|
|
|
|
|
|
|
|
|
|
| |
This patch adds another parser mode for apostrophes. Now single quote closing
markers are handled different from apostrophes for better local typograpy
support.
Needs testing and languages updates.
darcs-hash:20070513084024-7ad00-d20fe093a093c265d357b178e199c1596b484996.gz
|
|
|
|
|
|
|
|
|
|
|
| |
Each renderer has to supply a getFormat() function returning the format it
produces. Usually this is the same as the classname of the renderer (or Plugin)
says but it does not need to be necessarily.
Fixes a problem with the wrong format being reported to plugins when a
render plugin was used.
darcs-hash:20070303214102-7ad00-3f87d8a10e94f4c6c30bacc8f43486b94ecdb146.gz
|
|
|
|
| |
darcs-hash:20070302102035-7ad00-65b1bcf0140b1aa434dc321b8e84b614f9b65e2f.gz
|
|
|
|
| |
darcs-hash:20070211172015-d5083-2cab923b001391012a0a469746438d4d4087a718.gz
|
|
|
|
|
|
|
|
|
|
| |
adds a new render method toc_additem($id, $text, $level)
This allows toc items to be added separately from the header() function, allowing
plugins to generate their own table of content items without having to copy dw
core code (which may in the future change).
darcs-hash:20070206014821-9b6ab-218184e543f6b348e710acc2fe30a8ec329c66a8.gz
|
|
|
|
| |
darcs-hash:20070126204145-9b6ab-db7eba9c6045584a381eb83ae48787627973532b.gz
|
|
|
|
|
|
|
| |
Name the TRUE/FALSE-constants consistently as lowercase everywhere.
This might also be an tiny optimization in some environments.
darcs-hash:20070103205700-d2a3e-e7ec0aedb938d563f583116a2d5b17f3a3fea36c.gz
|
|
|
|
| |
darcs-hash:20061212200847-9b6ab-a844e9fec24e1ef63a8315026d518f0625beae4e.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Key changes:
- metadata stored on disk in two arrays, 'current' & 'persistent'
- p_set_metadata has an additional parameter, $persistent, which defaults to true
- metadata set within the renderer defaults to non-persistent
- new event hook, PARSER_METADATA_RENDER, which wraps around metadata rendering process. For
full details of this event refer to the event list documentation at splitbrain.
The patch includes automatic conversion of metadata in current form to the new format
For more details also see http://www.freelists.org/archives/dokuwiki/11-2006/msg00221.html
and any follow-up messages.
darcs-hash:20061126152144-9b6ab-a4e40c221e0274b13da07dc2fc1d2100f5f3a50e.gz
|
|
|
|
| |
darcs-hash:20061104153643-9b6ab-d5db971def3e4415488b7b7af1d29d7bcd3bc2e3.gz
|
|
|
|
|
|
|
|
|
|
|
| |
rss syntax extended to include a refresh parameter
<digits><period> period can be d,h,m for days, hours, minutes respectively
if not specified will default to 4 hours
dokuwiki imposes a minimum of 10 minutes
metadata now used "date valid age" (seconds) rather than "date valid end"
darcs-hash:20060925201222-9b6ab-c8e6d8e40bb178295bab874fce5147ccff35fbbb.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Cache
- add dependency for metadata renderer file
- check metadata for end of page life, "date valid end".
Metadata Renderer
- RSS syntax mode now sets rendered page expiry, "date valid end"
and includes the feed URL in "relation haspart".
Purgefile
For all wiki installations the purgefile records the earliest
time before which no cache purge (based on data consistency)
is required. Cache files older than this time MAY need to be
purged.
- remove purgeonadd configuration setting
darcs-hash:20060924202157-9b6ab-4531e91411c41914eeab2b6a8160c3d46b001cee.gz
|
|
|
|
| |
darcs-hash:20060901002016-9b6ab-716518138edf541a869510d7c2934b9474547fc3.gz
|
|
|
|
| |
darcs-hash:20060607073358-6e07b-90180a3098b55c577c49d5e182839bfb1298d1c1.gz
|
|
|
|
|
|
|
|
| |
This removes the meta instruction again in favour of the new meta renderer.
Most tests work now again, a few tweaks were done on the header handler
to render certain headers as it did in earlier versions.
darcs-hash:20060507153113-7ad00-bd299fbe1762482c72d109f9bca776f12bcea7c8.gz
|
|
|
|
|
|
|
|
|
|
|
| |
This adds meta data rendering to the indexer process to build missing meta data
in the background.
p_get_first_heading was adjusted to make use of the new meta data mechanisms
A problem with unitialized arrays in p_set_metadata and PHP5 was fixed (I think)
darcs-hash:20060430181740-7ad00-8952fa6beb4fadf6b4321627998442d34febfc8d.gz
|
|
darcs-hash:20060415104627-283c4-c7d35620fc9dbc21b8a47089692b76d35a9f9ca8.gz
|