Warn the user if they are using the Raw Photos module but not the Keep Original module.
This commit is contained in:
parent
add2406b9b
commit
7b8ceac558
@ -25,6 +25,7 @@ class Admin_RawPhoto_Controller extends Admin_Controller {
|
|||||||
private function _get_view($errors = array(), $icc_path = null) {
|
private function _get_view($errors = array(), $icc_path = null) {
|
||||||
$view = new Admin_View("admin.html");
|
$view = new Admin_View("admin.html");
|
||||||
$view->content = new View("admin_rawphoto.html");
|
$view->content = new View("admin_rawphoto.html");
|
||||||
|
$view->content->is_keeporiginal_active = module::is_active("keeporiginal");
|
||||||
$view->content->dcraw = rawphoto_graphics::detect_dcraw();
|
$view->content->dcraw = rawphoto_graphics::detect_dcraw();
|
||||||
$toolkit_names = array("imagemagick" => "ImageMagick",
|
$toolkit_names = array("imagemagick" => "ImageMagick",
|
||||||
"graphicsmagick" => "GraphicsMagick");
|
"graphicsmagick" => "GraphicsMagick");
|
||||||
|
@ -9,6 +9,13 @@
|
|||||||
array("raw_url" =>
|
array("raw_url" =>
|
||||||
"http://www.adamcoupe.com/whitepapers/photography_technique_benefits_of_shooting_in_raw.htm",
|
"http://www.adamcoupe.com/whitepapers/photography_technique_benefits_of_shooting_in_raw.htm",
|
||||||
"dcraw_url" => "http://www.cybercom.net/~dcoffin/dcraw/")) ?></p>
|
"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>
|
<fieldset>
|
||||||
<legend><?= t("Paths") ?></legend>
|
<legend><?= t("Paths") ?></legend>
|
||||||
<? if ($dcraw->installed): ?>
|
<? if ($dcraw->installed): ?>
|
||||||
|
Reference in New Issue
Block a user