AMPDBPASS not being read from /etc/amportal - only from function.inc.php

Hi freepbx.org,

I’m a new convert from the asterisk-gui and have been getting into all of it to learn back to front.

I found that in header.php there is a call to read the /etc/amportal.conf file, however, no matter what I put for AMPDBUSER or AMPDBPASS, the default values are used.

In order to successfully install freepbx with a different asterisk-database password than the default, I have to change function.inc.php

Is this a bug?

Cheers
Chris

this is version 2.3.1