Changeset 1379

Show
Ignore:
Timestamp:
11/28/08 23:14:29 (6 weeks ago)
Author:
MattRead
Message:

plugin:blogroll parse out title for quick link

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/blogroll/trunk/blogroll.plugin.php

    r1378 r1379  
    203203                else { 
    204204                    Session::error( _t("Could not find information for {$form->quick_url->value}. Please enter the information manually.", 'blogroll') ); 
     205                    $title = parse_url($form->quick_url->value, PHP_URL_HOST); 
     206                    $post->title = ( $title ) ? $title : $form->quick_url->value; 
    205207                    $post->info->url = $form->quick_url->value; 
    206208                    return;