Skip to content

Commit

Permalink
Issue #42: Fix PHP warnng: Illegal string offset 'version' in backdro…
Browse files Browse the repository at this point in the history
…p_get_library().
  • Loading branch information
Jen Lampton committed May 11, 2022
1 parent ddeb502 commit d90a178
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions colorbox.module
Original file line number Diff line number Diff line change
Expand Up @@ -89,36 +89,37 @@ function colorbox_views_api() {
* Implements hook_library_info().
*/
function colorbox_library_info() {
$colorbox_path = backdrop_get_path('module', 'colorbox');
$libraries['colorbox'] = array(
'title' => 'Colorbox',
'website' => 'http://www.jacklmoore.com/colorbox',
'version' => '1.6.4',
'js' => array(
backdrop_get_path('module', 'colorbox') . '/libraries/colorbox/jquery.colorbox-min.js' => array(),
$colorbox_path . '/libraries/colorbox/jquery.colorbox-min.js' => array(),
),
);
$libraries['colorbox-source'] = array(
'title' => 'Colorbox',
'website' => 'http://www.jacklmoore.com/colorbox',
'version' => '1.6.4',
'js' => array(
backdrop_get_path('module', 'colorbox') . '/libraries/colorbox/jquery.colorbox.js' => array(),
$colorbox_path . '/libraries/colorbox/jquery.colorbox.js' => array(),
),
);
$libraries['DOMPurify'] = array(
'title' => 'DOMPurify',
'website' => 'https://github.com/cure53/DOMPurify',
'version' => '2.3.6',
'js' => array(
backdrop_get_path('module', 'colorbox') . '/libraries/DOMPurify/purify.min.js',
$colorbox_path . '/libraries/DOMPurify/purify.min.js' => array(),
),
);
$libraries['DOMPurify-source'] = array(
'title' => 'DOMPurify',
'website' => 'https://github.com/cure53/DOMPurify',
'version' => '2.3.6',
'js' => array(
backdrop_get_path('module', 'colorbox') . '/libraries/DOMPurify/purify.js',
$colorbox_path . '/libraries/DOMPurify/purify.js' => array(),
),
);

Expand Down

0 comments on commit d90a178

Please sign in to comment.