diff options
author | redmatrix <git@macgirvin.com> | 2016-02-27 17:27:46 -0800 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-02-27 17:27:46 -0800 |
commit | a1f046992dd1897366f6ce67cb5a8c0895b8bf2a (patch) | |
tree | 5d762fcc2a583c15d3fc4a153d5ad00e2561ab68 | |
parent | cd5630476fd9637a76bae81a22d2891f626aebea (diff) | |
download | volse-hubzilla-a1f046992dd1897366f6ce67cb5a8c0895b8bf2a.tar.gz volse-hubzilla-a1f046992dd1897366f6ce67cb5a8c0895b8bf2a.tar.bz2 volse-hubzilla-a1f046992dd1897366f6ce67cb5a8c0895b8bf2a.zip |
I haven't investigated 'why', but the addition of the router class in https://github.com/redmatrix/hubzilla/commit/1db3409f36f408bfc49816e1fab3df4b53b8f19e resulted in the setup global variable $install_wizard_pass to not get initiated at the global level when the setup module file was included. This corrects the situation and makes install work but without explaining why the variable wasn't instantiated in the first place. This may be important - if any other modules use global variables internally. I don't believe that any do, but the behaviour needs to be resolved or documented.
-rwxr-xr-x | mod/setup.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/setup.php b/mod/setup.php index 6dc141702..282b9cbef 100755 --- a/mod/setup.php +++ b/mod/setup.php @@ -41,6 +41,9 @@ function setup_init(&$a) { global $install_wizard_pass; if (x($_POST, 'pass')) $install_wizard_pass = intval($_POST['pass']); + else + $install_wizard_pass = 1; + } /** |