Changeset 280 for trunk/web


Ignore:
Timestamp:
08/14/06 09:19:28 (16 years ago)
Author:
bastiaans
Message:

libtoga.php:

  • changed http var extraction to be more php5 friendly
  • changed node marking coordinates
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/addons/job_monarch/libtoga.php

    r262 r280  
    3434                $this->restvars = array();
    3535
    36                 $this->clustername = $httpvars["c"] ? $httpvars["c"] : null;
    37                 $this->metricname = $httpvars["m"] ? $httpvars["m"] : null;
     36                $this->clustername = $httpvars["c"] ? $httpvars["c"] : $getvars["c"];
     37                $this->metricname = $httpvars["m"] ? $httpvars["m"] : $getvars["m"];
    3838
    3939                foreach( $httpvars as $httpvar => $httpval ) {
     
    831831                        imageFilledRectangle( $this->image, $this->x+1, $this->y+1, $this->x+($size-1), $this->y+($size-1), $usecolor );
    832832                        if( count( $this->jobs ) > 0 )
    833                                 imageString( $this->image, 1, $this->x+(($size/2)-2), $this->y+(($size/2)-3), $JOB_NODE_MARKING, $black_color );
     833                                imageString( $this->image, 1, $this->x+(($size/2)-1), $this->y+(($size/2)-4), $JOB_NODE_MARKING, $black_color );
    834834
    835835                } else {
Note: See TracChangeset for help on using the changeset viewer.