Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:chregu/rss2twitter.php
Browse files Browse the repository at this point in the history
  • Loading branch information
chregu committed Jun 19, 2009
2 parents 73074ef + 5ec97b0 commit 8e8656a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions IDEAS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- SUP (Simple Update Protocol) Support for faster and less ressource intensive update checks -> http://blog.friendfeed.com/2008/08/simple-update-protocol-fetch-updates.html

10 changes: 5 additions & 5 deletions inc/r2t.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ protected function twit($entry, $options) {
if (isset($options['shortener']) && $options['shortener'] && strlen($entry['link']) > $options['maxurllength']) {
if (!isset($options['shortenerObject'])) {
$this->debug("create " . $options['shortener'] . " class");
include_once("r2t/shortener/".$options['shortener'].".php");
$classname = "r2t_shortener_".$options['shortener'];
include_once ("r2t/shortener/" . $options['shortener'] . ".php");
$classname = "r2t_shortener_" . $options['shortener'];
$options['shortenerObject'] = new $classname();
}
$this->debug("shorten " . $entry['link'] ." to ");
$this->debug("shorten " . $entry['link'] . " to ");
$entry['link'] = $options['shortenerObject']->shorten($entry['link']);
$this->debug( " " . $entry['link']);
$this->debug(" " . $entry['link']);
}

$msg = $entry['title'] . " " . $entry['link'];
Expand Down Expand Up @@ -121,7 +121,7 @@ protected function getNewEntries($feedname, $url) {
}

protected function getOldEntries($feed) {
$file = R2T_TEMP_DIR."/$feed";
$file = R2T_TEMP_DIR . "/$feed";
$oldentries = array();
if (file_exists($file)) {
$oldentries = sfYAML::Load($file);
Expand Down

0 comments on commit 8e8656a

Please sign in to comment.