diff options
Diffstat (limited to 'src/phorkie/Repository/Post.php')
| -rw-r--r-- | src/phorkie/Repository/Post.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/phorkie/Repository/Post.php b/src/phorkie/Repository/Post.php index 633fb27..438bf5a 100644 --- a/src/phorkie/Repository/Post.php +++ b/src/phorkie/Repository/Post.php @@ -122,7 +122,11 @@ class Repository_Post //FIXME: index changed files only //also handle file deletions $db = new Database(); - $db->getIndexer()->updateRepo($this->repo); + if ($bNew) { + $db->getIndexer()->addRepo($this->repo); + } else { + $db->getIndexer()->updateRepo($this->repo); + } } return true; |
