Changeset 18619
- Timestamp:
- 05/25/09 07:42:07 (4 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfMicroBlogPlugin/lib/sfMicroBlog.class.php
r18618 r18619 51 51 throw new Exception('service option MUST be defined.'); 52 52 // 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).').'); 55 56 } 56 57 }