From d800c9a55928dbe039e2dc8864c800e46674ff96 Mon Sep 17 00:00:00 2001 From: ozh Date: Thu, 6 Jun 2013 17:53:31 +0200 Subject: [PATCH] Tidy up - unneeded vars & comments --- includes/functions.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 9601122..bff5f50 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -272,12 +272,10 @@ function yourls_add_new_link( $url, $keyword = '', $title = '' ) { $return['html'] = yourls_table_add_row( $keyword, $url, $title, $ip, 0, time() ); $return['shorturl'] = YOURLS_SITE .'/'. $keyword; }else{ - // database error, couldnt store result + // database error, couldnt store result $return['status'] = 'fail'; $return['code'] = 'error:db'; - $return['url'] = array( 'keyword' => $url_exists->keyword, 'url' => $strip_url, 'title' => $url_exists->title, 'date' => $url_exists->timestamp, 'ip' => $url_exists->ip, 'clicks' => $url_exists->clicks ); - $return['message'] = /* //translators: eg "Error saving url to database" */ yourls_s( 'Error saving url to database' ); - $return['title'] = /* //translators: eg "Error saving url to database" */ yourls_s( 'Error saving url to database' ); + $return['message'] = yourls_s( 'Error saving url to database' ); } $ok = true; } -- 2.45.0