<?php
/**
* Lite Publisher
* Copyright (C) 2010 - 2013 Vladimir Yushko http://litepublisher.ru/ http://litepublisher.com/
* Dual licensed under the MIT (mit.txt)
* and GPL (gpl.txt) licenses.
**/

function tcommentsInstall($self) {
  $manager = tdbmanager ::i();
  $dir = dirname(__file__) . DIRECTORY_SEPARATOR;
  $manager->CreateTable($self->table, file_get_contents($dir .'comments.sql'));
  $manager->CreateTable($self->rawtable, file_get_contents($dir .'comments.raw.sql'));
  
  tposts::i()->deleted = $self->postdeleted;
}

function tcommentsUninstall($self) {
  tposts::unsub($self);
  
}