Hi,

In the file metatag_views.module, function metatag_views_views_preview_info_alter() there is this code which is wrong:

    // Set the page title to be the previewed views title before fetching meta
    // tag values.
   $title = drupal_set_title();
...
    // Restore the page title.
    drupal_set_title($title);

I believe this line
$title = drupal_set_title();

should be
$title = drupal_get_title();

Regards,

Comments

DamienMcKenna’s picture

Status: Active » Closed (works as designed)

After reviewing the API docs, drupal_set_title() is more suitable than drupal_get_title() as it doesn't perform any additional processing on the string. Thanks for raising the question though!

bohemier’s picture

Hi Damien,
You are right. Sorry, my mistake!
Regards