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 @@ -124,7 +124,7 @@ function os2web_gf_service_handler($file_id) {
124
124
}
125
125
else {
126
126
127
- // Show a polite message if the file cant be downloaded .
127
+ // Show a polite message if the file isnt allowed for download .
128
128
// If the message isnt set in config, deliver a access denied page.
129
129
if ($error_message = variable_get('os2web_cp_service_access_denied_message')) {
130
130
$markup = '<div class="messages error"><ul><li>';
@@ -137,26 +137,28 @@ function os2web_gf_service_handler($file_id) {
137
137
);
138
138
return $page;
139
139
}
140
- else {
141
- drupal_access_denied();
142
- }
143
140
}
144
141
}
145
- else {
146
- error_log(basename(__FILE__) . ':' . __LINE__ . ' HTTP header recieved = ' . print_r($header, 1));
147
- drupal_not_found();
148
- }
149
142
}
150
143
else {
151
144
error_log(basename(__FILE__) . ':' . __LINE__ . ' Settings are wrong.');
152
- drupal_not_found();
153
145
}
154
146
155
147
}
156
148
else {
157
149
error_log(basename(__FILE__) . ':' . __LINE__ . ' No URL found in variable DB');
158
- drupal_not_found();
159
150
}
151
+
152
+ // If we come to this line, show an error.
153
+ $markup = '<div class="messages error"><ul><li>';
154
+ $markup .= t('Det ønskede dokument kunne ikke hentes, hvilket kan skyldes opdatering af løsningen. Prøv venligst igen senere.');
155
+ $markup .= '</li></ul></div>';
156
+
157
+ $page['region'] = array(
158
+ '#type' => 'markup',
159
+ '#markup' => $markup,
160
+ );
161
+ return $page;
160
162
}
161
163
162
164
/**
You can’t perform that action at this time.
0 commit comments