[dokuwiki] Re: changelog lost with upgrade

Sander Tekelenburg wrote:
At 10:01 +0000 UTC, on 2007-02-18, Chris Smith wrote:

Sander Tekelenburg wrote:

The conf/local.php that I had copied over from the old DW appears to have
been overwritten by the Configuration Manager. Two settings have completely
disappeared: $conf['authtype'] = 'plain'  and
$conf['superuser'] = '@admin'. However, it does still contain
$conf['target']
= 'array("extern"=>"")',
That is a string, not an array.

Well, a string containing an array, no? :)
Only if the string is eval'd.  Its not ;-)

The quotes have been placed around the value by the config manager. Its not clever enough to realise that you have php code that you wish to be executed. Any such code should now be placed in 'conf/local.protected.php'
Remove that  line

OK, done. Now inks don't have a target attribute anymore. Thanks. (Btw,
before, the target attribute value was "a". Apparently, since that target
doesn't exist, browsers decide to interpret that as "_blank".)

[...]

Without seeing one of your pages its difficult to know exactly what was happening. That "a" looks like the first character of "array", which is the result of php converting an array to a string. It perfectly legitimate to target your own name. Under those circumstances the browser will assign that name to the new window, allowing it to be referenced using that name. You will probably find that the first link you click opens a new tab/window. The second you click will change the content in that tab/window.
I can't say why the other two settings have disappeared.  Try copying
over your original file again, but removing the $conf['target'] value

Done. Now when I let the Configuration Manager overwrite conf/local.php only
$conf['authtype'] = 'plain' still disappears, but Configuration Manager lists
the value as "plain", so at least it is what I want it to be :) Perhaps
"plain" is the default and therefore not explicitly written to local.php?
Yes. The config manager will only write non-default values to local.php. If you wish to "fix" a value, add it to 'conf/local.protected.php'. DW reads the three files in such a sequence that local.protected overrides local which overrides default.
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: