diff options
author | kondou <kondou@ts.unde.re> | 2013-08-08 17:03:19 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-08-25 21:04:49 +0200 |
commit | 4521b54c672d4111ee578cb7049aca53c79a5eef (patch) | |
tree | 61079b79bc5d793c8f37675cba0a584d345cdf3d /core | |
parent | 252548c62cf099e5186ffc323e3cf9494fae3768 (diff) | |
download | nextcloud-server-4521b54c672d4111ee578cb7049aca53c79a5eef.tar.gz nextcloud-server-4521b54c672d4111ee578cb7049aca53c79a5eef.zip |
Have /avatar.php as a central avatar-point
Diffstat (limited to 'core')
-rw-r--r-- | core/ajax/getavatar.php | 14 | ||||
-rw-r--r-- | core/routes.php | 3 |
2 files changed, 0 insertions, 17 deletions
diff --git a/core/ajax/getavatar.php b/core/ajax/getavatar.php deleted file mode 100644 index 66bab0230a6..00000000000 --- a/core/ajax/getavatar.php +++ /dev/null @@ -1,14 +0,0 @@ -<?php - -OC_JSON::checkLoggedIn(); -OC_JSON::callCheck(); - -if(isset($_POST['user'])) { - if(isset($_POST['size'])) { - OC_JSON::success(array('data' => \OC_Avatar::get($_POST['user'], $_POST['size']))); - } else { - OC_JSON::success(array('data' => \OC_Avatar::get($_POST['user']))); - } -} else { - OC_JSON::error(); -} diff --git a/core/routes.php b/core/routes.php index 309ed7484d9..dd8222d4378 100644 --- a/core/routes.php +++ b/core/routes.php @@ -36,9 +36,6 @@ $this->create('core_ajax_vcategories_favorites', '/core/ajax/vcategories/favorit ->actionInclude('core/ajax/vcategories/favorites.php'); $this->create('core_ajax_vcategories_edit', '/core/ajax/vcategories/edit.php') ->actionInclude('core/ajax/vcategories/edit.php'); -// Avatars -$this->create('core_ajax_getavatar', '/core/ajax/getavatar.php') - ->actionInclude('core/ajax/getavatar.php'); // oC JS config $this->create('js_config', '/core/js/config.js') ->actionInclude('core/js/config.php'); |