Missed that ... good catch Visvanath!
There's a couple of config lines that I don't re-call them being 'standard/stock' for a 1.9.x ... or any standard/stock higher version ...
$CFG->portal =
$CFG->tunite =
And I thought that all config lines that had a url in them were not to use a 'trailing slash'.
Do see a comment ... 'New Code May 07 2012 for logout'? So it's not a stock moodle but one that has been customized. Could this be a 1.9.x version of iomad? https://www.iomad.org/ Don't recall when they iomad first released.
'spirit of sharing', Ken