elplatt / seltzer

CRM for hackerspaces
GNU General Public License v3.0
104 stars 50 forks source link

use functions instead of global variables #475

Closed chris18890 closed 3 years ago

chris18890 commented 3 years ago

this removes the use of global $config_<variable being read in from config.inc.php file> in vaious functions and replaces it with a dedicated subfunction in the util.inc.php file; the idea being that the functions inutilinc.php will then be re-written to use variable_get() to pull the info from the DB rather than the config file, and a new options page/module will allow the editing of these - meaning that if the app is reinstalled, the config will be saved & persist as per #35.

chris18890 commented 3 years ago

Can I get a PR on this @elplatt / @ramgarden ?