Changeset 664
- Timestamp:
- 2008-07-03 23:54:35 (2 months ago)
- Files:
-
- 1 modified
-
plugins/quoticious/trunk/quoticious.plugin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugins/quoticious/trunk/quoticious.plugin.php
r663 r664 26 26 27 27 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')) { 29 30 $quote = $form->publish_controls->append('fieldset', 'quote', _t('Quote')); 30 31 … … 37 38 return $form; 38 39 } 40 39 41 } 40 42 41 43 public function action_publish_post ( $post, $form ) { 42 44 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 45 47 if( strlen( $form->quote->quote_author->value ) ) { 46 48 $post->info->quote_author= $form->quote->quote_author->value; 47 49 } 48 50 49 51 if( strlen( $form->quote->quote_url->value ) ) { 50 52 $post->info->quote_url= $form->quote->quote_url->value;
