Show
Ignore:
Timestamp:
07/03/08 21:54:35 (5 months ago)
Author:
arthus
Message:

Plugin:quoticious cleaned up for quotes

Files:
1 modified

Legend:

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

    r663 r664  
    2626     
    2727    public function action_form_publish ($form, $post) { 
    28         if($post->content_type == Post::type('quote')) { 
     28         
     29        if($post->content_type == Post::type('quote') || $form->content_type->value == Post::type('quote')) { 
    2930            $quote = $form->publish_controls->append('fieldset', 'quote', _t('Quote')); 
    3031         
     
    3738            return $form; 
    3839        } 
     40         
    3941    } 
    4042     
    4143    public function action_publish_post ( $post, $form ) { 
    4244         
    43         if($post->content_type == Post::type('quote')) { 
    44          
     45        if($post->content_type == Post::type('quote') || $form->content_type->value == Post::type('quote')) { 
     46                 
    4547            if( strlen( $form->quote->quote_author->value ) ) { 
    4648                $post->info->quote_author= $form->quote->quote_author->value; 
    4749            } 
    48          
     50     
    4951            if( strlen( $form->quote->quote_url->value ) ) { 
    5052                $post->info->quote_url= $form->quote->quote_url->value;