Ignore:
Timestamp:
08/31/11 15:35:10 (14 years ago)
Author:
fpvanagthoven
Message:

Done: Default question description -> do not display in SurveyTool?. Added bug to TODO list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/classes/SurveyTool.php

    r59 r95  
    7070
    7171    private function displayDescription() {
     72        if ($this->survey->description != Survey::DEFAULT_DESCRIPTION)
     73            $description = $this->survey->description;
     74        else
     75            $description = "";
    7276        ?>
    73         <p class='centerBoxed'><?php echo $this->survey->description; ?></p>
     77        <p class='centerBoxed'><?php echo $description; ?></p>
    7478        <?php
    7579    }
     
    97101
    98102    private function displayQuestionDescription($question) {
     103        if ($question->description != "Write a question description here.")
     104            $description = $question->description;
     105        else
     106            $description = "";
    99107        ?>
    100         <p><?php echo "<div class='questionDescription noPadding'>" . $question->description . "</div>"; ?></p>
     108        <p><?php echo "<div class='questionDescription noPadding'>" . $description . "</div>"; ?></p>
    101109        <?php
    102110    }
Note: See TracChangeset for help on using the changeset viewer.