Development

Changeset 11028 for plugins/sfSearchPlugin

You must first sign up to be able to contribute.

Show
Ignore:
Timestamp:
08/21/08 22:29:51 (3 months ago)
Author:
Carl.Vondrick
Message:

sfSearch: added check for xfIndex in ->checkIndexExists() task method

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfSearchPlugin/trunk/core/lib/task/xfBaseTask.class.php

    r9706 r11028  
    5353    if (!class_exists($index, true)) 
    5454    { 
    55       throw new sfException('Index ' . $index . ' does not exist'); 
     55      throw new sfException('Index "' . $index . '" does not exist'); 
     56    } 
     57 
     58    $ref = new ReflectionClass($index); 
     59    if (!$ref->implementsInterface('xfIndex')) 
     60    { 
     61      throw new sfException('Class "' . $index . '" does not implement xfIndex interface.'); 
    5662    } 
    5763  }