Ignore:
Timestamp:
Apr 4, 2012, 12:30:37 AM (9 years ago)
Author:
goya
Message:

Revert de r2648

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/lib/task/reindexSolrObjectTask.class.php

    r2648 r2649  
    3030        $this->index($i);
    3131    } else {
    32       $this->index($class, $id);
     32      $obj = Doctrine::getTable($class)->find($id);
     33      $this->index($obj);
    3334    }
    3435  }
    3536
    36   protected static function index($class, $id) {
    37     $obj = Doctrine::getTable($class)->find($id);
     37  protected static function index($obj) {
    3838    if (!$obj) {
    3939      $json = new stdClass();
Note: See TracChangeset for help on using the changeset viewer.