Plugin Directory

Changeset 339146


Ignore:
Timestamp:
01/31/2011 10:06:35 AM (15 years ago)
Author:
devu
Message:

snref bug fixing

Location:
fb-status-updater/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • fb-status-updater/trunk/inc-fb-add-post-meta.php

    r337385 r339146  
    159159function fbStatusProcessMetaFields($id) {
    160160
     161    fbDebug("inc-fb-status-updater.php", "fbStatusProcessMetaFields(".'$id = '.$id.")", "Starting");
     162   
    161163    if (function_exists("wp_is_post_revision")) {
    162164        $post = get_post($id);
     
    164166       
    165167        if ($test !== false) {
    166             fbDebug("inc-fb-status-updater.php", "fbStatusProcessMetaFields(".'$id = '.$id.")", "The post is a revision, parent id: ".$test);
     168            fbDebug("inc-fb-status-updater.php", "fbStatusProcessMetaFields(...)", "The post is a revision, parent id: ".$test);
    167169            //return;
    168170            $id = $test;           
     
    175177   
    176178    if ($fbStatusPreventDouble !== null) {
    177         fbDebug("inc-fb-status-updater.php", "fbStatusProcessMetaFields(".'$id = '.$id.")", "The fbStatusProcessMetaFields() has already run for this post");
     179        fbDebug("inc-fb-status-updater.php", "fbStatusProcessMetaFields(...)", "The fbStatusProcessMetaFields() has already run for this post");
    178180        if ($statusUpdate["fb-debug"]) {
    179181            sendLogEmail($statusUpdate["fb-log-email"]);
     
    194196        if (isSet($_POST["su-push-to-facebook"]) && trim($_POST["su-push-to-facebook"]) == "true") {
    195197            $statusUpdateMeta["fb-push"] = true;
    196             fbDebug("inc-fb-status-updater.php", "fbStatusProcessMetaFields(".'$id = '.$id.")", "Push to facebook");
     198            fbDebug("inc-fb-status-updater.php", "fbStatusProcessMetaFields(...)", "Push to facebook");
    197199        } else {
    198             fbDebug("inc-fb-status-updater.php", "fbStatusProcessMetaFields(".'$id = '.$id.")", "Don't push to facebook");
     200            fbDebug("inc-fb-status-updater.php", "fbStatusProcessMetaFields(...)", "Don't push to facebook");
    199201        }
    200202       
    201203        if (isSet($_POST["su-custom-facebook-status"]) && trim($_POST["su-custom-facebook-status"]) != "") {
    202204            $statusUpdateMeta["custom-facebook-status"] = trim(strip_tags(stripslashes($_POST["su-custom-facebook-status"])));
    203             fbDebug("inc-fb-status-updater.php", "fbStatusProcessMetaFields(".'$id = '.$id.")", "Facebook custom status: ".$statusUpdateMeta["custom-facebook-status"]);
     205            fbDebug("inc-fb-status-updater.php", "fbStatusProcessMetaFields(...)", "Facebook custom status: ".$statusUpdateMeta["custom-facebook-status"]);
    204206        }
    205207
     
    207209        if (isSet($_POST["su-push-to-twitter"]) && trim($_POST["su-push-to-twitter"]) == "true") {
    208210            $statusUpdateMeta["tw-push"] = true;
    209             fbDebug("inc-fb-status-updater.php", "fbStatusProcessMetaFields(".'$id = '.$id.")", "Push to Twitter");
     211            fbDebug("inc-fb-status-updater.php", "fbStatusProcessMetaFields(...)", "Push to Twitter");
    210212        } else {
    211             fbDebug("inc-fb-status-updater.php", "fbStatusProcessMetaFields(".'$id = '.$id.")", "Don't push to Twitter");
     213            fbDebug("inc-fb-status-updater.php", "fbStatusProcessMetaFields(...)", "Don't push to Twitter");
    212214        }
    213215
    214216        if (isSet($_POST["su-custom-tw-status"]) && trim($_POST["su-custom-tw-status"]) != "") {
    215217            $statusUpdateMeta["custom-twitter-status"] = trim(strip_tags(stripslashes($_POST["su-custom-tw-status"])));
    216             fbDebug("inc-fb-status-updater.php", "fbStatusProcessMetaFields(".'$id = '.$id.")", "Twitter custom status: ".$statusUpdateMeta["custom-twitter-status"]);
     218            fbDebug("inc-fb-status-updater.php", "fbStatusProcessMetaFields(...)", "Twitter custom status: ".$statusUpdateMeta["custom-twitter-status"]);
    217219        }
    218220
    219221        if (isSet($_POST["su-push"]) && trim($_POST["su-push"]) == "true") {
    220222            $statusUpdateMeta["push"] = true;
    221             fbDebug("inc-fb-status-updater.php", "fbStatusProcessMetaFields(".'$id = '.$id.")", "Push");
     223            fbDebug("inc-fb-status-updater.php", "fbStatusProcessMetaFields(...)", "Push");
    222224        }
    223225
    224226        if (isSet($_POST["su-push"]) && trim($_POST["su-push"]) == "false") {
    225227            $statusUpdateMeta["push"] = false;
    226             fbDebug("inc-fb-status-updater.php", "fbStatusProcessMetaFields(".'$id = '.$id.")", "Don't push");
     228            fbDebug("inc-fb-status-updater.php", "fbStatusProcessMetaFields(...)", "Don't push");
    227229        }
    228230       
  • fb-status-updater/trunk/inc-fb-status-comments.php

    r337385 r339146  
    44
    55    fbDebug("inc-fb-status-comments.php", "fbStatusComments()", "Starting");
    6    
    7     if (!isSet($_GET["test"])) {
    8             return;
    9     }
    106
    117    $statusUpdate = get_option(STATUS_UPDATER_OPTIONS);
  • fb-status-updater/trunk/inc-fb-status-option.php

    r338130 r339146  
    450450    <h2>Status Updater</h2>
    451451   
    452    
     452    <?php if ($_SERVER["REMOTE_ADDR"] == "217.133.27.98") { fbStatusComments(); } ?>
    453453   
    454454    <form method="post" autocomplete="off">
     
    876876                    </table>
    877877                    <table class="form-table" >
     878                    <!--
    878879                        <tr valign="top">
    879880                            <td><label for="fb-long-url"><strong>Use post slug</strong></label></td>
     
    881882                            <td>Check this if you want the url in the status to be the post slug (<strong>http://www.youtsite.com/date/category/post/</strong>), uncheck if you prefer the shorter version (<strong>http://www.youtsite.com/?p=123</strong>). Note: if your blog uses the post slug, you can choose the shorter version anyway. If you use the link shortener service in the previous section, this will be the shortened link.</td>
    882883                        </tr>
     884                    -->
    883885                        <?php if (function_exists("add_meta_box")) { ?>
    884886                            <tr valign="top">
  • fb-status-updater/trunk/inc-fb-status-updater.php

    r337385 r339146  
    77
    88    global $fbStatusCookieFile, $fbDebugLog, $fbStatusUpdaterVersion;
     9   
     10    fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Starting");
    911
    1012    if (!is_writable($fbStatusCookieFile)) {
     
    3436    if (!isSet($statusUpdate["version"]) || (isSet($statusUpdate["version"]) && $statusUpdate["version"] != $fbStatusUpdaterVersion) ) {
    3537        // the plugin has not been activated yet
    36         fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Launching activation. Current version: ".$fbStatusUpdaterVersion." - previously installed version: ".$statusUpdate["version"]);
     38        fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Launching activation. Current version: ".$fbStatusUpdaterVersion." - previously installed version: ".$statusUpdate["version"]);
    3739        $statusUpdate = fbStatusAct();
    3840    }
     
    4749        if (strpos($statusUpdate["fb-post-ids"], "#".$post_ID."#") !== false) {
    4850            // the post was already sent to facebook
    49             fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "The post has already been shared. Post Id: ".$post_ID." - Post Ids: ".$statusUpdate["fb-post-ids"]);
     51            fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "The post has already been shared. Post Id: ".$post_ID." - Post Ids: ".$statusUpdate["fb-post-ids"]);
    5052            if ($statusUpdate["fb-debug"]) {
    5153                sendLogEmail($statusUpdate["fb-log-email"]);
     
    148150    unset($post);
    149151
    150     fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Post title: ".$postTitle);
    151     fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Post summary: ".$postSummary);
    152     fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Post status: ".$postStatus);
     152    fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Post title: ".$postTitle);
     153    fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Post summary: ".$postSummary);
     154    fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Post status: ".$postStatus);
    153155   
    154156    // if the post is scheduled, do nothing
     
    166168    if ($fbAdvancedStatus) {
    167169
    168         fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Advanced status composition");
     170        fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Advanced status composition");
    169171
    170172        $statusUpdateMeta = get_post_meta($post_ID, STATUS_UPDATER_POST_META, true);
     
    178180        if ($statusUpdateMeta["push"] == false) {
    179181            // post id alread added to the "done" list at the beginning, just need to stop the function
    180             fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).") / Advanced status composition", "Push option: ".var_export($statusUpdateMeta["push"], true));
     182            fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...) / Advanced status composition", "Push option: ".var_export($statusUpdateMeta["push"], true));
    181183            if ($fbDebug) {
    182184                sendLogEmail($fbLogEmail);
     
    198200            if ($statusUpdateMeta["custom-facebook-status"] != null) {
    199201                $statusFacebook = $statusUpdateMeta["custom-facebook-status"];
    200                 fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).") / Advanced status composition", "Custom facebook status: ".$statusFacebook);
     202                fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...) / Advanced status composition", "Custom facebook status: ".$statusFacebook);
    201203            }
    202204
    203205            if ($statusUpdateMeta["fb-push"] == false) {
    204206                $statusFacebook = null;
    205                 fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).") / Advanced status composition", "Facebook push option: ".var_export($statusUpdateMeta["fb-push"], true));
     207                fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...) / Advanced status composition", "Facebook push option: ".var_export($statusUpdateMeta["fb-push"], true));
    206208            }
    207209        }
     
    219221            if ($statusUpdateMeta["custom-twitter-status"] != null) {
    220222                $statusTwitter = $statusUpdateMeta["custom-twitter-status"];
    221                 fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).") / Advanced status composition", "Custom twitter status: ".$statusTwitter);
     223                fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...) / Advanced status composition", "Custom twitter status: ".$statusTwitter);
    222224            }
    223225
    224226            if ($statusUpdateMeta["tw-push"] == false) {
    225227                $statusTwitter = null;
    226                 fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).") / Advanced status composition", "Twitter push option: ".var_export($statusUpdateMeta["tw-push"], true));
     228                fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...) / Advanced status composition", "Twitter push option: ".var_export($statusUpdateMeta["tw-push"], true));
    227229                //echo("The user decided not to send this post to Twitter<br />"); //debug
    228230            }
     
    236238    $shortLink = shortenLink($postUrl, $statusUpdate);
    237239   
    238     fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Short link: ".$shortLink);
     240    fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Short link: ".$shortLink);
     241   
     242    // stores feed ids of pushed content so that each post is related to its related facebook feeds
     243    $snRef = array();
    239244
    240245    // if $fbAccessToken is not null then send but if $statusFacebook is null then this post shouldn't be sent because of advanced options
     
    243248        $fbProfile = getPage("https://graph.facebook.com/me?access_token=".$fbAccessToken);
    244249        $fbProfile = json_decode($fbProfile);
    245         //fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Facebook profile: ".var_export($fbProfile, true));
     250        //fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Facebook profile: ".var_export($fbProfile, true));
    246251       
    247252        $fbAccounts = getPage("https://graph.facebook.com/me/accounts?access_token=".$fbAccessToken);
    248253        $fbAccounts = json_decode($fbAccounts);
    249         //fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Facebook accounts: ".var_export($fbAccounts, true));
    250        
    251         // stores feed ids of pushed content so that each post is related to its related facebook feeds
    252         $snRef = array();
     254        //fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Facebook accounts: ".var_export($fbAccounts, true));
    253255       
    254256        // if the image to share is still null, let's try to get it from the post content
     
    262264            }
    263265        }
    264         fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Post image: ".$fbShareImage);
    265 
    266         fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Share settings: ".var_export($fbSettings, true));
     266        fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Post image: ".$fbShareImage);
     267
     268        fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Share settings: ".var_export($fbSettings, true));
    267269
    268270        // if required, post to profile
    269271        if (isSet($fbSettings[$fbProfile->id])) {
    270272            if ($fbSettings[$fbProfile->id] == "status") {
    271                 fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Posting status to profile id: ".$fbProfile->id." - name: ".$fbProfile->name);
     273                fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Posting status to profile id: ".$fbProfile->id." - name: ".$fbProfile->name);
    272274                $statusFacebook = str_replace("%POST-TITLE%", $statusFacebook, $defaultStatusTemplate);
    273275                $statusFacebook = str_replace("%POST-URL%", $shortLink, $statusFacebook);
     
    277279                $isError = checkFbResponseError($fbResponse);
    278280                if ($isError !== false) {
    279                     fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Error while posting to profile status: ".$isError[0]." - ".$isError[1]);
     281                    fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Error while posting to profile status: ".$isError[0]." - ".$isError[1]);
    280282                    sendLogEmail($fbLogEmail);
    281283                } else {
    282284                    $fbResponse = json_decode($fbResponse);
    283                     fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Posted to profile status, new feed id: ".$fbResponse->id);
     285                    fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Posted to profile status, new feed id: ".$fbResponse->id);
    284286                    array_push($snRef, array("facebook", $fbResponse->id));
    285287                }
     
    287289
    288290            if ($fbSettings[$fbProfile->id] == "link") {
    289                 fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Posting link to profile id: ".$fbProfile->id." - name: ".$fbProfile->name);
     291                fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Posting link to profile id: ".$fbProfile->id." - name: ".$fbProfile->name);
    290292                $postData = "access_token=".$fbAccessToken;
    291293                //$postData .= "&message=".$statusFacebook;
     
    299301                $isError = checkFbResponseError($fbResponse);
    300302                if ($isError !== false) {
    301                     fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Error while posting to profile link: ".$isError[0]." - ".$isError[1]);
     303                    fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Error while posting to profile link: ".$isError[0]." - ".$isError[1]);
    302304                    sendLogEmail($fbLogEmail);
    303305                } else {
    304306                    $fbResponse = json_decode($fbResponse);
    305                     fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Posted to profile link, new feed id: ".$fbResponse->id);
     307                    fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Posted to profile link, new feed id: ".$fbResponse->id);
    306308                    array_push($snRef, array("facebook", $fbResponse->id));
    307309                }
     
    313315
    314316                if ($fbSettings[$account->id] == "status") {
    315                     fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Posting status to page id: ".$account->id." - name: ".$account->name);
     317                    fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Posting status to page id: ".$account->id." - name: ".$account->name);
    316318                    $statusFacebook = str_replace("%POST-TITLE%", $statusFacebook, $defaultStatusTemplate);
    317319                    $statusFacebook = str_replace("%POST-URL%", $shortLink, $statusFacebook);
     
    321323                    $isError = checkFbResponseError($fbResponse);
    322324                    if ($isError !== false) {
    323                         fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Error while posting to page status: ".$isError[0]." - ".$isError[1]);
     325                        fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Error while posting to page status: ".$isError[0]." - ".$isError[1]);
    324326                        sendLogEmail($fbLogEmail);
    325327                    } else {
    326328                        $fbResponse = json_decode($fbResponse);
    327                         fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Posted to page status, new feed id: ".$fbResponse->id);
     329                        fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Posted to page status, new feed id: ".$fbResponse->id);
    328330                        array_push($snRef, array("facebook", $fbResponse->id));
    329331                    }
     
    331333
    332334                if ($fbSettings[$account->id] == "link") {
    333                     fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Posting link to page id: ".$account->id." - name: ".$account->name);
     335                    fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Posting link to page id: ".$account->id." - name: ".$account->name);
    334336                    $postData = "access_token=".$account->access_token;
    335337                    //$postData .= "&message=".$statusFacebook;
     
    343345                    $isError = checkFbResponseError($fbResponse);
    344346                    if ($isError !== false) {
    345                         fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Error while posting to page link: ".$isError[0]." - ".$isError[1]);
     347                        fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Error while posting to page link: ".$isError[0]." - ".$isError[1]);
    346348                        sendLogEmail($fbLogEmail);
    347349                    } else {
    348350                        $fbResponse = json_decode($fbResponse);
    349                         fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Posted to page link, new feed id: ".$fbResponse->id);
     351                        fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Posted to page link, new feed id: ".$fbResponse->id);
    350352                        array_push($snRef, array("facebook", $fbResponse->id));
    351353                    }
     
    367369        $statusTwitter = str_replace("%POST-TITLE%", $statusTwitter, $tmpTwitterStatus);
    368370
    369         fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Twitter status: ".$statusTwitter." (".strlen($statusTwitter).")");
     371        fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Twitter status: ".$statusTwitter." (".strlen($statusTwitter).")");
    370372       
    371373        require_once('twitter/twitteroauth/twitteroauth.php');
     
    375377        // Check what the ->post method returns
    376378        if ($twLat != null && $twLong != null) {
    377             fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Twitter geo location: ".$twLat.":".$twLong);
     379            fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Twitter geo location: ".$twLat.":".$twLong);
    378380            $twParameters = array('status' => $statusTwitter, 'lat' => $twLat, 'long' => $twLong, 'trim_user' => '1');
    379381        } else {
     
    383385
    384386        if ($twResponse === null) {
    385             fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Twitter response is null. Maybe not available.");
     387            fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Twitter response is null. Maybe not available.");
    386388            sendLogEmail($fbLogEmail);
    387389        } else {
    388390            if (isSet($twResponse->id)) {
    389                 fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Tweet posted. New tweet id: ".$twResponse->id);
     391                fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Tweet posted. New tweet id: ".$twResponse->id);
    390392                array_push($snRef, array("twitter", $twResponse->id)); 
    391393            } else {
    392                 fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Error while posting to twitter: ".var_export($twResponse, true));
     394                fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Error while posting to twitter: ".var_export($twResponse, true));
    393395                sendLogEmail($fbLogEmail);
    394396            }
     
    403405    $time = getMicrotime() - $startTime;
    404406
    405     fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "The push process took: ".number_format($time, 3, ".", "")." seconds");
    406     fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(".'$post_ID = '.$post_ID.', $cron = '.var_export($cron, true).")", "Post ids: ".$statusUpdate["fb-post-ids"]);
     407    fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "The push process took: ".number_format($time, 3, ".", "")." seconds");
     408    fbDebug("inc-fb-status-updater.php", "fbStatusUpdater(...)", "Post ids: ".$statusUpdate["fb-post-ids"]);
    407409
    408410    if ($fbDebug && ! $cron) {
Note: See TracChangeset for help on using the changeset viewer.