Changeset 7070
- Timestamp:
- 01/16/08 07:32:20 (10 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfLucenePlugin/trunk/lib/category/sfLuceneCategories.class.php
r7023 r7070 58 58 59 59 $this->load(); 60 } 61 62 public function __destruct() 63 { 64 $this->save(); 60 65 } 61 66 plugins/sfLucenePlugin/trunk/lib/indexer/sfLuceneIndexer.class.php
r7069 r7070 136 136 protected function addCategory($category, $c = 1) 137 137 { 138 $this->getSearch()->getCategoriesHarness()->getCategory($category)->add($c) ->getHolder()->save();138 $this->getSearch()->getCategoriesHarness()->getCategory($category)->add($c); 139 139 } 140 140 … … 146 146 protected function removeCategory($category, $c = 1) 147 147 { 148 $this->getSearch()->getCategoriesHarness()->getCategory($category)->subtract($c) ->getHolder()->save();148 $this->getSearch()->getCategoriesHarness()->getCategory($category)->subtract($c); 149 149 } 150 150 plugins/sfLucenePlugin/trunk/lib/sfLucene.class.php
r7069 r7070 396 396 $this->getEventDispatcher()->notify(new sfEvent($this, 'lucene.log', array('Rebuilding index...'))); 397 397 398 $this->getCategoriesHarness()->clear() ->save();398 $this->getCategoriesHarness()->clear(); 399 399 400 400 $original = $this->getParameter('delete_lock', false);