Skip to content

Commit

Permalink
Merge pull request #2538 from zikula/revert-2537-cmfcmf-patch-3
Browse files Browse the repository at this point in the history
Corrected default theme
  • Loading branch information
cmfcmf committed Jul 15, 2015
2 parents 0b4ad61 + 83c9eff commit 4ea5900
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ private function upgradeModules()

private function regenerateThemes()
{
// set default theme to Andreas08
\System::setVar('Default_Theme', 'ZikulaAndreas08Theme');
// regenerate the themes list
return ThemeUtil::regenerate();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private function init()
}

// update default theme name
$conn->executeQuery("UPDATE module_vars SET value = 'ZikulaAndreas08Theme' WHERE modname = 'ZConfig' AND value='Default_Theme'");
$conn->executeQuery("UPDATE module_vars SET value = 's:20:\"ZikulaAndreas08Theme\";' WHERE modname = 'ZConfig' AND name = 'Default_Theme'");

// confirm custom module urls are valid with new routes, reset if not
$modules = $conn->fetchAll("SELECT * FROM modules");
Expand Down Expand Up @@ -143,4 +143,4 @@ private function upgradeUsersModule()
$item['state'] = \ModUtil::STATE_ACTIVE;
$this->container->get('doctrine.entitymanager')->flush();
}
}
}

0 comments on commit 4ea5900

Please sign in to comment.