File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
phpmyfaq/src/phpMyFAQ/Setup Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1083,7 +1083,7 @@ public function startInstall(array|null $setup = null): void
10831083 $ configuration ->add ($ name , $ value );
10841084 }
10851085
1086- $ configuration ->update (['main.referenceURL ' => $ link ->getSystemUri ('/setup/index.php ' )]);
1086+ $ configuration ->update (['main.referenceURL ' => $ setup [ ' mainUrl ' ] ?? $ link ->getSystemUri ('/setup/index.php ' )]);
10871087 $ configuration ->add ('security.salt ' , md5 ($ configuration ->getDefaultUrl ()));
10881088
10891089 // add an admin account and rights
Original file line number Diff line number Diff line change 3939const IS_VALID_PHPMYFAQ = true ;
4040const DEBUG = true ;
4141
42- $ _SERVER ['HTTP_HOST ' ] = 'https://localhost/phpmyfaq-test/ ' ;
43- $ _SERVER ['SERVER_NAME ' ] = 'https://localhost/phpmyfaq-test/ ' ;
42+ $ _SERVER ['HTTP_HOST ' ] = 'https://localhost/ ' ;
43+ $ _SERVER ['SERVER_NAME ' ] = 'https://localhost/ ' ;
4444
4545require PMF_ROOT_DIR . '/content/core/config/constants.php ' ;
4646
7878 'loginname ' => 'admin ' ,
7979 'password ' => 'password ' ,
8080 'password_retyped ' => 'password ' ,
81- 'rootDir ' => PMF_TEST_DIR
81+ 'rootDir ' => PMF_TEST_DIR ,
82+ 'mainUrl ' => 'https://localhost/ ' ,
8283];
8384
8485Strings::init ();
You can’t perform that action at this time.
0 commit comments