Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Issue #1781134 by temaruk: Fixed Libraries 1.0 is not supported, fall…

…back should take this into account.
  • Loading branch information...
commit df8ecd600b3a200dfeba0917c7cc86b49c3c05b5 1 parent 9e84708
@IceCreamYou authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  timeago.module
View
2  timeago.module
@@ -275,7 +275,7 @@ function timeago_tokens($type, $tokens, array $data = array(), array $options =
function timeago_add_js() {
// Add the Timeago library, the module's helper JS, and the default Drupal
// translation of Timeago date terms.
- if (module_exists('libraries')) {
+ if (module_exists('libraries') && function_exists('libraries_load')) {
$library_path = libraries_get_path('timeago');
$path = drupal_get_path('module', 'timeago') . '/timeago.js';
drupal_add_js($path);
Please sign in to comment.
Something went wrong with that request. Please try again.