diff --git a/bin/translation.php b/bin/translation.php index dc04892e0db8fd3abe534d4858ba4a053096012c..5202b3f8a17ce09510d788f757fbc8f1fcf87f58 100755 --- a/bin/translation.php +++ b/bin/translation.php @@ -69,7 +69,7 @@ switch($action) { throw new Exception('Unknown action [' . $action . ']'); } -function readline($prompt = '') { +function ssp_readline($prompt = '') { echo $prompt; return rtrim( fgets( STDIN ), "\n" ); } @@ -122,7 +122,7 @@ function push($file, $fileWithoutExt, $aid) { echo('Go to this URL to authenticate/authorize the request: ' . $url . "\n"); system('open ' . $url); - readline('Click enter when you have completed the authorization step using your web browser...'); + ssp_readline('Click enter when you have completed the authorization step using your web browser...'); // Replace the request token with an access token $accessToken = $consumer->getAccessToken( $baseurl . '/module.php/oauth/accessToken.php', $requestToken);