Plugin Directory

Changeset 1187302


Ignore:
Timestamp:
06/25/2015 05:46:50 AM (11 years ago)
Author:
harshitpeer
Message:

Minor Bug Fix

Location:
wpdudes-survey/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wpdudes-survey/trunk/readme.txt

    r1071580 r1187302  
    44Tags: feedback, poll, wpdudes, wordpress, dudes, techydudes, harshit, rishi, survey, rating, anonymous survey, vote, voting
    55Requires at least: 3.0.1
    6 Tested up to: 4.1
    7 Stable tag: 4.3
     6Tested up to: 4.2.2
     7Stable tag: 4.2.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • wpdudes-survey/trunk/wpdudes_survey.php

    r1186998 r1187302  
    44* Plugin URI: http://www.wpdudes.com/plugins/wpdudes-survey
    55* Description: A voting tool for the members or employees of a group, club, community or organisation (eg. HR) to provide internal feedback anonymously.
    6 * Version: 1.0.2
     6* Version: 1.0.3
    77* Author: WPDudes
    88* Author URI: http://www.wpdudes.com/
     
    7070    }
    7171    if(($wpdudes_survey_percentage_result > 100) OR ($wpdudes_survey_percentage_result < 0)) {
    72         $error = "Percentage cannot be greater than 100 or less than 0";
     72        $error = "Percentage cannot be more than 100 or less than 0";
    7373    }
    7474    $wpdudes_survey_desc = addslashes($_POST['wpdudes_survey_desc']);
     
    247247        $_POST = array();
    248248        return;
    249     }
     249    } else {
     250        echo "<div class='error'>". $error ."</div>";
     251    }
    250252}
    251253?>
    252 <?php if($error!="") { ?> <div class="error"><?php echo $error; ?></div> <?php } ?>
    253254<?php
    254255//This code will create the create survey page
     
    551552             
    552553            // Draw the pie chart 
    553             $Test->setFontProperties($contentdir."/plugins/wpdudes_survey/Fonts/tahoma.ttf",8); 
     554            $Test->setFontProperties($contentdir."/plugins/wpdudes-survey/Fonts/tahoma.ttf",8); 
    554555            $Test->drawPieGraph($DataSet->GetData(),$DataSet->GetDataDescription(),150,90,110,PIE_PERCENTAGE,TRUE,50,20,5); 
    555556            $Test->drawPieLegend(400,15,$DataSet->GetData(),$DataSet->GetDataDescription(),250,250,250); 
     
    634635             
    635636            // Draw the pie chart 
    636             $Test->setFontProperties($contentdir."/plugins/wpdudes_survey/Fonts/tahoma.ttf",8); 
     637            $Test->setFontProperties($contentdir."/plugins/wpdudes-survey/Fonts/tahoma.ttf",8); 
    637638            $Test->drawPieGraph($DataSet->GetData(),$DataSet->GetDataDescription(),150,90,110,PIE_PERCENTAGE,TRUE,50,20,5); 
    638639            $Test->drawPieLegend(400,15,$DataSet->GetData(),$DataSet->GetDataDescription(),250,250,250); 
Note: See TracChangeset for help on using the changeset viewer.