Permalink
Browse files

Fix 2013-12-08 "Binky" compatibilty issue (un-saveable config)

All onoff configuration switches do not get saved when the user changes
the value. The reason was that I used true|false for "onoff" switches
although only 1|0 was allowed [1] (never noticed this).

It worked for years but the way the configuration gets parsed by DokuWiki
was changed [2] [3] after Binky RC2, so the bug affects the current
DokuWiki Binky final only.

[1] <https://www.dokuwiki.org/config#configuration_options>
[2] <splitbrain/dokuwiki@43e7001>
[3] <http://www.freelists.org/post/dokuwiki/SemiUrgent-broken-template-config-in-final-Binky,1>
  • Loading branch information...
andreashaerter committed Feb 8, 2014
1 parent 01787f8 commit 3401234e15604855ca1e242859aaa7b74300c984
Showing with 8 additions and 8 deletions.
  1. +8 −8 conf/default.php
@@ -31,27 +31,27 @@
}
//header navigation
$conf["mnmlblog_headernav"] = false; //TRUE: use/show header navigation
$conf["mnmlblog_headernav"] = 0; //1: use/show header navigation
$conf["mnmlblog_headernav_location"] = ":wiki:navigation_header"; //page/article used to store the header navigation
//sidebar navigation
$conf["mnmlblog_sidebarnav"] = true; //TRUE: use/show sidebar navigation
$conf["mnmlblog_sidebarnav"] = 1; //1: use/show sidebar navigation
$conf["mnmlblog_sidebarnav_location"] = ":wiki:navigation_sidebar"; //page/article used to store the sidebar navigation
//custom copyright notice
$conf["mnmlblog_copyright"] = true; //TRUE: use/show copyright notice
$conf["mnmlblog_copyright_default"] = true; //TRUE: use default copyright notice (if copyright notice is enabled at all)
$conf["mnmlblog_copyright"] = 1; //1: use/show copyright notice
$conf["mnmlblog_copyright_default"] = 1; //1: use default copyright notice (if copyright notice is enabled at all)
$conf["mnmlblog_copyright_location"] = ":wiki:copyright"; //page/article used to store a custom copyright notice
//search form
$conf["mnmlblog_search"] = true; //TRUE: use/show search
$conf["mnmlblog_search"] = 1; //1: use/show search
$conf["mnmlblog_search_pos"] = "sidebar"; //sidebar or headernav
//qr code box
$conf["mnmlblog_qrcodebox"] = true; //TRUE: use/show box with QR Code of current page's URL
$conf["mnmlblog_qrcodebox"] = 1; //1: use/show box with QR Code of current page's URL
//other stuff
$conf["mnmlblog_newpostform_location"] = ":wiki:create_new_blogpost"; //page/article used to store the form to create a new blog post
$conf["mnmlblog_hideadminlinksfromanon"] = false; //TRUE: hide admin links if client is not an authenticated user (including login link -> you have to call "example.com?do=login" manually)
$conf["mnmlblog_loaduserjs"] = false; //TRUE: mnml-blog/user/user.js will be loaded
$conf["mnmlblog_hideadminlinksfromanon"] = 0; //1: hide admin links if client is not an authenticated user (including login link -> you have to call "example.com?do=login" manually)
$conf["mnmlblog_loaduserjs"] = 0; //1: mnml-blog/user/user.js will be loaded

0 comments on commit 3401234

Please sign in to comment.