]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Install.php
Merge pull request #10040 from annando/file-permissions
[friendica.git] / src / Module / Install.php
index 3ad38041e194a36b1ed75a97374feafce18d3910..2a9bab81ec085fbe944c11fe36274e90255db2f1 100644 (file)
@@ -26,6 +26,7 @@ use Friendica\BaseModule;
 use Friendica\Core;
 use Friendica\Core\Config\Cache;
 use Friendica\Core\Renderer;
+use Friendica\Core\Theme;
 use Friendica\DI;
 use Friendica\Network\HTTPException;
 use Friendica\Util\BasePath;
@@ -162,6 +163,16 @@ class Install extends BaseModule
                                }
 
                                self::$installer->installDatabase($configCache->get('system', 'basepath'));
+                       
+                               // install allowed themes to register theme hooks
+                               // this is same as "Reload active theme" in /admin/themes
+                               $allowed_themes = Theme::getAllowedList();
+                               $allowed_themes = array_unique($allowed_themes);
+                               foreach ($allowed_themes as $theme) {
+                                       Theme::uninstall($theme);
+                                       Theme::install($theme);
+                               }
+                               Theme::setAllowedList($allowed_themes);
 
                                break;
                }
@@ -351,7 +362,7 @@ class Install extends BaseModule
                return
                        DI::l10n()->t('<h1>What next</h1>')
                        . "<p>" . DI::l10n()->t('IMPORTANT: You will need to [manually] setup a scheduled task for the worker.')
-                       . DI::l10n()->t('Please see the file "INSTALL.txt".')
+                       . DI::l10n()->t('Please see the file "doc/INSTALL.md".')
                        . "</p><p>"
                        . DI::l10n()->t('Go to your new Friendica node <a href="%s/register">registration page</a> and register as new user. Remember to use the same email you have entered as administrator email. This will allow you to enter the site admin panel.', $baseurl)
                        . "</p>";