aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actions/systemsettings/install.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/actions/systemsettings/install.php b/actions/systemsettings/install.php
index 3e401bb5c..98d958a67 100644
--- a/actions/systemsettings/install.php
+++ b/actions/systemsettings/install.php
@@ -114,6 +114,12 @@ if (get_input('settings') == 'go') {
enable_plugin('search', $site->getGUID());
}
+ // reset the views path in case of installing over an old data dir.
+ // @todo should this warn / error first?
+ $dataroot = datalist_get('dataroot');
+ $cache = new ElggFileCache($dataroot);
+ $cache->delete('view_paths');
+
// Now ping home
if ($usage) {
ping_home($site);