#1101382 by swentel: Use drupal_substr to fix to long block descriptions
authorDaniel Wehner
Wed, 23 Mar 2011 23:05:25 +0000 (00:05 +0100)
committerDaniel Wehner
Wed, 23 Mar 2011 23:05:37 +0000 (00:05 +0100)
plugins/views_plugin_display_block.inc

index 6c52309..f27b23c 100644 (file)
@@ -73,7 +73,7 @@ class views_plugin_display_block extends views_plugin_display {
     }
 
     if (strlen($block_description) > 16) {
-      $block_description = substr($block_description, 0, 16) . '...';
+      $block_description = drupal_substr($block_description, 0, 16) . '...';
     }
 
     $options['block_description'] = array(