[Pkg-owncloud-commits] [owncloud] 59/75: Resize profile picture if bigger than 200px on either x or y. Bolded text on message box.
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:08:42 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v3.0.1
in repository owncloud.
commit e0161826d81aa0ce80bb7decf96dddd5d02a546f
Author: Thomas Tanghus <thomas at tanghus.net>
Date: Fri Jan 27 21:34:56 2012 +0100
Resize profile picture if bigger than 200px on either x or y.
Bolded text on message box.
---
apps/contacts/photo.php | 3 +++
apps/contacts/templates/part.messagebox.php | 6 +-----
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/apps/contacts/photo.php b/apps/contacts/photo.php
index 478ef82..756aae6 100644
--- a/apps/contacts/photo.php
+++ b/apps/contacts/photo.php
@@ -63,6 +63,9 @@ if( is_null($content)){
}
}
if($image->loadFromBase64($child->value)) {
+ if($image->width() > 200 || $image->height() > 200) {
+ $image->resize(200);
+ }
header('Content-Type: '.$mime);
$image();
exit();
diff --git a/apps/contacts/templates/part.messagebox.php b/apps/contacts/templates/part.messagebox.php
index 3681bb6..5db10e7 100644
--- a/apps/contacts/templates/part.messagebox.php
+++ b/apps/contacts/templates/part.messagebox.php
@@ -1,7 +1,3 @@
<div id="messagebox">
-<table width="100%" style="border: 0;">
-<tr>
- <th id="messagebox_msg"></th>
-</tr>
-</table>
+<div id="messagebox_msg"></div>
</di>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list