SAAS-1083 - Implement unpublishing

This commit is contained in:
Duncan Sommerville 2015-10-29 13:09:50 -04:00
parent 4b11979eff
commit 40a2aa10d8
3 changed files with 24 additions and 13 deletions

View file

@ -29,7 +29,7 @@ class Application_Service_PublishService {
public static function publish($fileId, $data) {
foreach ($data as $k => $v) {
$service = PublishServiceFactory::getService($k);
if ($v) $service->publish($fileId);
$service->$v($fileId);
}
}