Skip to content

Commit d3224b8

Browse files
author
Jen Lampton
committed
Issue #36: variable_get() replaced by config_get().
1 parent 4b46c57 commit d3224b8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

colorbox.module

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,8 @@ function _colorbox_doheader() {
207207
}
208208

209209
// Determine URL path to public files.
210-
$js_settings['file_public_path'] = base_path() .
211-
variable_get('file_public_path', conf_path() . '/files');
212-
210+
$file_public_path = config_get('system.core', 'file_public_path');
211+
$js_settings['file_public_path'] = base_path() . $file_public_path;
213212
$js_settings['specificPagesDefaultValue'] = "admin*\nimagebrowser*\nimg_assist*\nimce*\nnode/add/*\nnode/*/edit\nprint/*\nprintpdf/*\nsystem/ajax\nsystem/ajax/*";
214213

215214
$path = backdrop_get_path('module', 'colorbox');

0 commit comments

Comments
 (0)