mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #03044
[Bug 738265] Re: typo in lib/config-defaults.php
This wasn't a typo actually, it's there for a reason. config-
defaults.php resets $cfg at the top, so $cfg->dataroot is undefined in
the place where it sets that log_file property; $CFG on the other hand
is a global defined in init.php, so $CFG->dataroot is available.
I think this problem occurred because config-defaults.php got copied,
but as I think it says somewhere in the docs, you shouldn't be copying
config-defaults.php to create your config.php, you should copy config-
dist.php instead.
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/738265
Title:
typo in lib/config-defaults.php
Status in Mahara ePortfolio:
Fix Committed
Bug description:
I found a config file error (wrong case on the error log.. CFG-> vs
cfg->) which was copied over from lib/config-defaults.php -- so that's
a minor typo in your lib/config-defaults.php file with big
consequences; and thus another easy-to-fix bug.
Forum post with complete details: http://mahara.org/interaction/forum/topic.php?id=3110#post13442
References