summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobin Millette <millette@plantard.controlezvous.ca>2009-01-23 05:57:15 +0000
committerRobin Millette <millette@plantard.controlezvous.ca>2009-01-23 05:57:15 +0000
commit171d89aab79207f08b3c84d76a4b2bb50185490d (patch)
tree34efcec8e274ec33cb1af215a6b1c4490fda0cb0 /lib
parentfbd1cf4dfa452166a5985d9a9177d57e8554f09f (diff)
parent277a6e984c6778865a62b5a1b99219327460be6d (diff)
Merge branch 'master' of /var/www/trunk
Diffstat (limited to 'lib')
-rw-r--r--lib/facebookaction.php5
-rw-r--r--lib/imagefile.php10
-rw-r--r--lib/tagcloudsection.php2
3 files changed, 11 insertions, 6 deletions
diff --git a/lib/facebookaction.php b/lib/facebookaction.php
index 528b58154..a20e618d3 100644
--- a/lib/facebookaction.php
+++ b/lib/facebookaction.php
@@ -73,9 +73,7 @@ class FacebookAction extends Action
function prepare($argarray)
{
parent::prepare($argarray);
-
- common_debug("Facebookaction::prepare");
-
+
$this->facebook = getFacebook();
$this->fbuid = $this->facebook->require_login();
@@ -261,7 +259,6 @@ class FacebookAction extends Action
function showInstructions()
{
- global $xw;
$this->elementStart('dl', array('class' => 'system_notice'));
$this->element('dt', null, 'Page Notice');
diff --git a/lib/imagefile.php b/lib/imagefile.php
index f15a72c76..7f1db892c 100644
--- a/lib/imagefile.php
+++ b/lib/imagefile.php
@@ -48,12 +48,17 @@ if (!defined('LACONICA')) {
class ImageFile
{
var $filename = null;
+ var $barename = null;
var $type = null;
+ var $height = null;
+ var $width = null;
- function __construct($filename=null, $type=null)
+ function __construct($filename=null, $type=null, $width=null, $height=null)
{
$this->filename = $filename;
$this->type = $type;
+ $this->width = $type;
+ $this->height = $type;
}
static function fromUpload($param='upload')
@@ -83,6 +88,9 @@ class ImageFile
return;
}
+ $imagefile->width = $info[0];
+ $imagefile->height = $info[1];
+
switch ($info[2]) {
case IMAGETYPE_GIF:
case IMAGETYPE_JPEG:
diff --git a/lib/tagcloudsection.php b/lib/tagcloudsection.php
index 178dd88ca..ff2aca6d6 100644
--- a/lib/tagcloudsection.php
+++ b/lib/tagcloudsection.php
@@ -76,7 +76,7 @@ class TagCloudSection extends Section
$this->out->elementStart('ul', 'tags xoxo tag-cloud');
foreach ($tw as $tag => $weight) {
- $this->showTag($tag, $weight, $weight/$sum);
+ $this->showTag($tag, $weight, ($sum == 0) ? 0 : $weight/$sum);
}
$this->out->elementEnd('ul');