Changeset 294

Show
Ignore:
Timestamp:
11/04/07 16:52:33 (1 year ago)
Author:
hans
Message:

Merging fix [293] from 2.3 branch

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/classes/phing/input/DefaultInputHandler.php

    r123 r294  
    6868        $prompt = $request->getPrompt(); 
    6969         
    70         // use is_a() to avoid needing the class to be loaded 
    71         if (is_a($request, 'YesNoInputRequest')) { // (yes/no) 
     70        if ($request instanceof YesNoInputRequest) { 
    7271            $prompt .= '(' . implode('/', $request->getChoices()) .')'; 
    73         } elseif (is_a($request, 'MultipleChoiceInputRequest')) { // (a,b,c,d) 
     72        } elseif ($request instanceof MultipleChoiceInputRequest) { // (a,b,c,d) 
    7473            $prompt .= '(' . implode(',', $request->getChoices()) . ')';             
    7574        }