diff options
author | intrigeri <intrigeri@boum.org> | 2010-12-22 12:50:50 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2010-12-22 12:50:50 +0100 |
commit | fd6d4fda6a95f8318c33aed66c4fcf05aad72b86 (patch) | |
tree | 45db57efa24163ec62d19463fce29ee5b3df5b4b /doc/bugs/po:_plugin_should_not_override_the_title_on_the_homepage.mdwn | |
parent | fd4cfe722e99ee5a90030a6e042330633cab6145 (diff) | |
download | ikiwiki-fd6d4fda6a95f8318c33aed66c4fcf05aad72b86.tar ikiwiki-fd6d4fda6a95f8318c33aed66c4fcf05aad72b86.tar.gz |
Rename new bug so that it appears on the po plugin page.
Diffstat (limited to 'doc/bugs/po:_plugin_should_not_override_the_title_on_the_homepage.mdwn')
-rw-r--r-- | doc/bugs/po:_plugin_should_not_override_the_title_on_the_homepage.mdwn | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/bugs/po:_plugin_should_not_override_the_title_on_the_homepage.mdwn b/doc/bugs/po:_plugin_should_not_override_the_title_on_the_homepage.mdwn new file mode 100644 index 000000000..a6287714b --- /dev/null +++ b/doc/bugs/po:_plugin_should_not_override_the_title_on_the_homepage.mdwn @@ -0,0 +1,19 @@ +The po plugin systematically overrides the title of the homepage with the wikiname. This prevents explicitly changing it with a meta directive. It should rather check whether it was overridden before setting it back. + +Here is a simple patch for that: + + diff --git a/Plugin/po.pm b/Plugin/po.pm + index 6395ebd..a048c6a 100644 + --- a/Plugin/po.pm + +++ b/Plugin/po.pm + @@ -333,7 +333,7 @@ sub pagetemplate (@) { + && $masterpage eq "index") { + $template->param('parentlinks' => []); + } + - if (ishomepage($page) && $template->query(name => "title")) { + + if (ishomepage($page) && $template->query(name => "title") && !$template->query(name => "title_overridden")) { + $template->param(title => $config{wikiname}); + } + } + +Thanks. |