Browse Source

Merge pull request #583 from jordandukart/7.x-double-encode

Don't double encode as drupal_set_title check_plains.
pull/584/head
Adam 10 years ago
parent
commit
e9c8f99ec1
  1. 7
      islandora.module

7
islandora.module

@ -1117,19 +1117,20 @@ function islandora_printer_object(AbstractObject $object) {
* Title callback for drupal title. * Title callback for drupal title.
* *
* Changes the drupal title to be the objects label. * Changes the drupal title to be the objects label.
* models that their modules want to provide a view for.
* *
* @param AbstractObject $object * @param AbstractObject $object
* The object to view. * The object to view.
* *
* @return string * @return string
* The objects label. * The objects label. Note that we return the raw value to prevent
* double encoding, as we expect drupal_set_title() to check_plain() down
* the road.
*/ */
function islandora_drupal_title(AbstractObject $object) { function islandora_drupal_title(AbstractObject $object) {
module_load_include('inc', 'islandora', 'includes/breadcrumb'); module_load_include('inc', 'islandora', 'includes/breadcrumb');
drupal_set_breadcrumb(islandora_get_breadcrumbs($object)); drupal_set_breadcrumb(islandora_get_breadcrumbs($object));
return filter_xss($object->label); return $object->label;
} }
/** /**

Loading…
Cancel
Save