From 59b1ace0cb65874cc3fc91723fc3d8337f4bcd30 Mon Sep 17 00:00:00 2001 From: Nigel Banks Date: Fri, 18 Jan 2013 14:37:40 +0100 Subject: [PATCH] Display admin form status icons when clean urls are off. The icon for the status of the repository was not displaying when clean urls was turned off. Image files can't be referenced with through the query "q" paramter. --- admin/islandora.admin.inc | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/admin/islandora.admin.inc b/admin/islandora.admin.inc index 3e6ba3fb..30cb1941 100644 --- a/admin/islandora.admin.inc +++ b/admin/islandora.admin.inc @@ -47,17 +47,20 @@ function islandora_repository_admin($form, &$form_state) { if ($info) { if ($dc) { - $confirmation_message = '' - . t('Successfully connected to Fedora Server (Version !version).', array('!version' => $info['repositoryVersion'])); + $confirmation_message = theme_image(array('path' => 'misc/watchdog-ok.png', 'attributes' => array())); + $confirmation_message .= t('Successfully connected to Fedora Server (Version !version).', array( + '!version' => $info['repositoryVersion'])); } else { - $confirmation_message = '' - . t('Unable to authenticate when connecting to to Fedora Server (Version !version). Please configure the !filter.', array('!version' => $info['repositoryVersion'], '!filter' => 'Drupal Filter')); + $confirmation_message = theme_image(array('path' => 'misc/watchdog-warning.png', 'attributes' => array())); + $confirmation_message .= t('Unable to authenticate when connecting to to Fedora Server (Version !version). Please configure the !filter.', + array('!version' => $info['repositoryVersion'], '!filter' => 'Drupal Filter')); } } else { - $confirmation_message = ' ' - . t('Unable to connect to Fedora server at !islandora_url', array('!islandora_url' => $url)); + $confirmation_message = theme_image(array('path' => 'misc/watchdog-error.png', 'attributes' => array())); + $confirmation_message .= t('Unable to connect to Fedora server at !islandora_url', array( + '!islandora_url' => $url)); } $form['islandora_tabs'] = array(