Development

Changeset 18619

You must first sign up to be able to contribute.

Changeset 18619

Show
Ignore:
Timestamp:
05/25/09 07:42:07 (4 years ago)
Author:
jerome.etienne
Message:

- beautifullation and successfully tested facebook status update

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfMicroBlogPlugin/lib/sfMicroBlog.class.php

    r18618 r18619  
    5151        throw new Exception('service option MUST be defined.');    
    5252      // check if the service if one of the allow one 
    53       if( !in_array($options['service'], array('identica', 'twitter', 'pingfm', 'twitter_oauth')) ) 
    54         throw new Exception('service option IS NOT one of the following (identica, twitter, pingfm).');    
     53      $services = array('identica', 'twitter', 'pingfm', 'twitter_oauth', 'facebook'); 
     54      if( !in_array($options['service'], $services) ) 
     55        throw new Exception('service option IS NOT one of the following ('.implode(", ", $services).').');     
    5556    } 
    5657  }