aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/profile/actions/cropicon.php6
-rw-r--r--views/default/canvas/layouts/widgets.php8
2 files changed, 1 insertions, 13 deletions
diff --git a/mod/profile/actions/cropicon.php b/mod/profile/actions/cropicon.php
index 137bd50ba..bcd8ea756 100644
--- a/mod/profile/actions/cropicon.php
+++ b/mod/profile/actions/cropicon.php
@@ -25,19 +25,13 @@
$tiny = get_resized_image_from_existing_file($filename,25,25, true, $x1, $y1, $x2, $y2);
$small = get_resized_image_from_existing_file($filename,40,40, true, $x1, $y1, $x2, $y2);
$medium = get_resized_image_from_existing_file($filename,100,100, true, $x1, $y1, $x2, $y2);
- $large = get_resized_image_from_existing_file($filename,200,200, true, $x1, $y1, $x2, $y2);
if ($small !== false
&& $medium !== false
- && $large !== false
&& $tiny !== false) {
$filehandler = new ElggFile();
$filehandler->owner_guid = $_SESSION['user']->getGUID();
- $filehandler->setFilename("profile/" . $_SESSION['user']->username . "large.jpg");
- $filehandler->open("write");
- $filehandler->write($large);
- $filehandler->close();
$filehandler->setFilename("profile/" . $_SESSION['user']->username . "medium.jpg");
$filehandler->open("write");
$filehandler->write($medium);
diff --git a/views/default/canvas/layouts/widgets.php b/views/default/canvas/layouts/widgets.php
index 403ea8f96..1ef87d2f6 100644
--- a/views/default/canvas/layouts/widgets.php
+++ b/views/default/canvas/layouts/widgets.php
@@ -174,13 +174,7 @@
if (is_array($area2widgets) && sizeof($area2widgets) > 0)
foreach($area2widgets as $widget) {
- // echo elgg_view_entity($widget);
-
-?>
-
- <script type="text/javascript" src="<?php echo $vars['url']; ?>pg/view/<?php echo $widget->getGUID(); ?>?view=js"></script>
-
-<?
+ echo elgg_view_entity($widget);
}
?>