Skip to content

Commit 3401234

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] <dokuwiki/dokuwiki@43e7001> [3] <http://www.freelists.org/post/dokuwiki/SemiUrgent-broken-template-config-in-final-Binky,1>
1 parent 01787f8 commit 3401234

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

conf/default.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,27 @@
3131
}
3232

3333
//header navigation
34-
$conf["mnmlblog_headernav"] = false; //TRUE: use/show header navigation
34+
$conf["mnmlblog_headernav"] = 0; //1: use/show header navigation
3535
$conf["mnmlblog_headernav_location"] = ":wiki:navigation_header"; //page/article used to store the header navigation
3636

3737
//sidebar navigation
38-
$conf["mnmlblog_sidebarnav"] = true; //TRUE: use/show sidebar navigation
38+
$conf["mnmlblog_sidebarnav"] = 1; //1: use/show sidebar navigation
3939
$conf["mnmlblog_sidebarnav_location"] = ":wiki:navigation_sidebar"; //page/article used to store the sidebar navigation
4040

4141
//custom copyright notice
42-
$conf["mnmlblog_copyright"] = true; //TRUE: use/show copyright notice
43-
$conf["mnmlblog_copyright_default"] = true; //TRUE: use default copyright notice (if copyright notice is enabled at all)
42+
$conf["mnmlblog_copyright"] = 1; //1: use/show copyright notice
43+
$conf["mnmlblog_copyright_default"] = 1; //1: use default copyright notice (if copyright notice is enabled at all)
4444
$conf["mnmlblog_copyright_location"] = ":wiki:copyright"; //page/article used to store a custom copyright notice
4545

4646
//search form
47-
$conf["mnmlblog_search"] = true; //TRUE: use/show search
47+
$conf["mnmlblog_search"] = 1; //1: use/show search
4848
$conf["mnmlblog_search_pos"] = "sidebar"; //sidebar or headernav
4949

5050
//qr code box
51-
$conf["mnmlblog_qrcodebox"] = true; //TRUE: use/show box with QR Code of current page's URL
51+
$conf["mnmlblog_qrcodebox"] = 1; //1: use/show box with QR Code of current page's URL
5252

5353
//other stuff
5454
$conf["mnmlblog_newpostform_location"] = ":wiki:create_new_blogpost"; //page/article used to store the form to create a new blog post
55-
$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)
56-
$conf["mnmlblog_loaduserjs"] = false; //TRUE: mnml-blog/user/user.js will be loaded
55+
$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)
56+
$conf["mnmlblog_loaduserjs"] = 0; //1: mnml-blog/user/user.js will be loaded
5757

0 commit comments

Comments
 (0)