mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-21 23:33:54 -04:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user