From 9a18060ee446c9f4fe9887ec9f8e76f175923725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no> Date: Tue, 12 Jan 2010 12:59:02 +0000 Subject: [PATCH] rename readline in order to not get conflict git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2109 44740490-163a-0410-bde0-09ae8108e29a --- bin/translation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/translation.php b/bin/translation.php index dc04892e0..5202b3f8a 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); -- GitLab