Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Commit

Permalink
Removed unnecessary code to handle URL building in CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
dpobel committed Jul 11, 2011
1 parent 4f85651 commit ceb3fe3
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions classes/autostatussocialnetwork.php
Expand Up @@ -193,13 +193,6 @@ public function substituteFormats( $message, eZContentObject $contentObject, eZW
}
}

// Last chance, if the URL still is not properly formed
// (can happen when run from a CLI script)
// @FIXME : This is clumsy, does not support SSLness, may be broken :)
if ( strpos( $nodeURL, 'http' ) === false )
{
$nodeURL = 'http://' . trim( eZINI::instance()->variable( 'SiteSettings', 'SiteURL' ), '/' ) . $nodeURL;
}
if ( $shortener instanceof autostatusShortener )
{
$nodeURL = $shortener->shorten( $nodeURL );
Expand Down

0 comments on commit ceb3fe3

Please sign in to comment.