File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ function os2web_gf_service_handler($file_id) {
130
130
}
131
131
else {
132
132
133
- // Show a polite message if the file cant be downloaded .
133
+ // Show a polite message if the file isnt allowed for download .
134
134
// If the message isnt set in config, deliver a access denied page.
135
135
if ($error_message = variable_get('os2web_cp_service_access_denied_message')) {
136
136
$markup = '<div class="messages error"><ul><li>';
@@ -143,26 +143,28 @@ function os2web_gf_service_handler($file_id) {
143
143
);
144
144
return $page;
145
145
}
146
- else {
147
- drupal_access_denied();
148
- }
149
146
}
150
147
}
151
- else {
152
- error_log(basename(__FILE__) . ':' . __LINE__ . ' HTTP header recieved = ' . print_r($header, 1));
153
- drupal_not_found();
154
- }
155
148
}
156
149
else {
157
150
error_log(basename(__FILE__) . ':' . __LINE__ . ' Settings are wrong.');
158
- drupal_not_found();
159
151
}
160
152
161
153
}
162
154
else {
163
155
error_log(basename(__FILE__) . ':' . __LINE__ . ' No URL found in variable DB');
164
- drupal_not_found();
165
156
}
157
+
158
+ // If we come to this line, show an error.
159
+ $markup = '<div class="messages error"><ul><li>';
160
+ $markup .= t('Det ønskede dokument kunne ikke hentes, hvilket kan skyldes opdatering af løsningen. Prøv venligst igen senere.');
161
+ $markup .= '</li></ul></div>';
162
+
163
+ $page['region'] = array(
164
+ '#type' => 'markup',
165
+ '#markup' => $markup,
166
+ );
167
+ return $page;
166
168
}
167
169
168
170
/**
You can’t perform that action at this time.
0 commit comments