diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-02-22 14:19:23 +0100 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-02-22 14:19:23 +0100 |
commit | faf6055baa224fbf4248a70d28ae4416c9c7eb1c (patch) | |
tree | ff69ed32ba37b68473698a1d72027b84df15efbf /apps/contacts/ajax | |
parent | 9794e7e4279e793e714e7ecb7fa755c384a2b8a2 (diff) | |
download | nextcloud-server-faf6055baa224fbf4248a70d28ae4416c9c7eb1c.tar.gz nextcloud-server-faf6055baa224fbf4248a70d28ae4416c9c7eb1c.zip |
Translate and fix copy/paste error.
Diffstat (limited to 'apps/contacts/ajax')
-rw-r--r-- | apps/contacts/ajax/loadphoto.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/contacts/ajax/loadphoto.php b/apps/contacts/ajax/loadphoto.php index 358e046942b..1f4cde0b535 100644 --- a/apps/contacts/ajax/loadphoto.php +++ b/apps/contacts/ajax/loadphoto.php @@ -18,8 +18,6 @@ * You should have received a copy of the GNU Affero General Public * License along with this library. If not, see <http://www.gnu.org/licenses/>. * - * TODO: Translatable strings. - * Remember to delete tmp file at some point. */ // Init owncloud require_once('../../../lib/base.php'); @@ -33,7 +31,7 @@ OC_JSON::checkAppEnabled('contacts'); function bailOut($msg) { OC_JSON::error(array('data' => array('message' => $msg))); - OC_Log::write('contacts','ajax/savecrop.php: '.$msg, OC_Log::DEBUG); + OC_Log::write('contacts','ajax/loadphoto.php: '.$msg, OC_Log::DEBUG); exit(); } @@ -42,7 +40,7 @@ $image = null; $id = isset($_GET['id']) ? $_GET['id'] : ''; if($id == '') { - bailOut('Missing contact id.'); + bailOut(OC_Contacts_App::$l10n->t('Missing contact id.')); } $tmpl = new OC_TEMPLATE("contacts", "part.contactphoto"); |