From 2b11ae4cbbc863a9db5c085a4e9a1136994d6b3e Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 30 Jul 2013 12:37:16 +0200 Subject: [PATCH] twitter2feed fixed --- twitter2feed.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/twitter2feed.php b/twitter2feed.php index 7a0cefa..d6ffd6f 100755 --- a/twitter2feed.php +++ b/twitter2feed.php @@ -9,6 +9,7 @@ // Autoblog Project inclusion // ---------------------------- if(file_exists("config.php")) require_once "config.php"; +if(file_exists("functions.php")) require_once "functions.php"; if( !defined('API_TWITTER')) {header("HTTP/1.1 404 Not Found"); die('API_TWITTER is undefined: make it LOCAL in "config.php" if you want me to work for you.');} if ('API_TWITTER' === FALSE) {header("HTTP/1.1 404 Not Found"); die('Twitter support disabled in "config.php". Sorry.');} $api = API_TWITTER; @@ -25,7 +26,7 @@ $exclude_reply = '@'; // if you want twitter2feed to return replies too: $exclu 'data-tweet-id="(?P\d+)"(.*)'. '(data-retweet-id="(?P\d+)"(.*))?'. 'data-screen-name="(?P[^"]+)"(.*)'. - '(?P<fullname>[^(.*)'. + '(?P<fullname>[^(.*)'. 'data-time="(?P\d+)"(.*)'. '

(?P.*)

'. '%sU', $str, $arr);