Don't do graphics detection in core_installer::install() because that

gets run at scaffolding::package() time, not on the target machine.
Instead, create a core module variable to trigger running
graphics::choose_default_toolkit() on the first admin login after install.

Fixes ticket #206.
This commit is contained in:
Bharat Mediratta
2009-04-05 20:43:05 +00:00
parent a2dd24d7ca
commit c936eebcf7
6 changed files with 44 additions and 23 deletions
+2 -2
View File
@@ -24,8 +24,8 @@ class Admin_Graphics_Controller extends Admin_Controller {
$view->content->available = "";
$tk = new ArrayObject(graphics::detect_toolkits(), ArrayObject::ARRAY_AS_PROPS);
$active = module::get_var("core", "graphics_toolkit");
foreach (array("gd", "imagemagick", "graphicsmagick") as $id) {
$active = module::get_var("core", "graphics_toolkit", "none");
foreach (array("gd", "imagemagick", "graphicsmagick", "none") as $id) {
if ($id == $active) {
$view->content->active = new View("admin_graphics_$id.html");
$view->content->active->tk = $tk;