1
0

Warn the user if they are using the Raw Photos module but not the Keep Original module.

This commit is contained in:
Chad Parry 2011-04-24 10:00:37 -06:00
parent add2406b9b
commit 7b8ceac558
2 changed files with 8 additions and 0 deletions

View File

@ -25,6 +25,7 @@ class Admin_RawPhoto_Controller extends Admin_Controller {
private function _get_view($errors = array(), $icc_path = null) {
$view = new Admin_View("admin.html");
$view->content = new View("admin_rawphoto.html");
$view->content->is_keeporiginal_active = module::is_active("keeporiginal");
$view->content->dcraw = rawphoto_graphics::detect_dcraw();
$toolkit_names = array("imagemagick" => "ImageMagick",
"graphicsmagick" => "GraphicsMagick");

View File

@ -9,6 +9,13 @@
array("raw_url" =>
"http://www.adamcoupe.com/whitepapers/photography_technique_benefits_of_shooting_in_raw.htm",
"dcraw_url" => "http://www.cybercom.net/~dcoffin/dcraw/")) ?></p>
<? if (!$is_keeporiginal_active): ?>
<p class="g-module-status g-warning g-block">
<?= t('The photos will not be preserved in their raw format unless you ' .
'<a href="%modules_url">activate the Keep Original module</a>.',
array("modules_url" => url::site("admin/modules"))) ?>
</p>
<? endif; ?>
<fieldset>
<legend><?= t("Paths") ?></legend>
<? if ($dcraw->installed): ?>