Ejemplo n.º 1
0
 public static function PublishPage($pageId, $preview = false, $remove_draft = false)
 {
     $page = Page::GetByPageId($pageId);
     if ($page != null) {
         $site = Site::GetBySiteId($page['SiteId']);
         // test for now
         Publish::PublishTemplate($page, $site, $preview, $remove_draft);
         // do not publish a static page for include only pages
         if ($page['IncludeOnly'] == 0) {
             Publish::PublishStaticPage($page, $site, $preview, $remove_draft);
         }
     }
 }