diff --git a/code/CMSMain.php b/code/CMSMain.php index 85ed7daf..42249ead 100755 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -350,6 +350,13 @@ JS; return $result; } + /** + * Save the current sites {@link SiteConfig} into the database + * + * @param array $data + * @param Form $form + * @return FormResponse + */ function save_siteconfig($data, $form) { $siteConfig = SiteConfig::current_site_config(); $form->saveInto($siteConfig); @@ -693,6 +700,12 @@ JS; return new GroupedDropdownField("ReportSelector", _t('CMSMain.REPORT', 'Report'),$finalOptions); } + + /** + * Generate the parameter HTML for SideReports that have params + * + * @return LiteralField + */ function ReportFormParameters() { $forms = array(); foreach($this->SideReports() as $report) { diff --git a/code/staticpublisher/StaticPublisher.php b/code/staticpublisher/StaticPublisher.php index 95f70943..087b72a5 100644 --- a/code/staticpublisher/StaticPublisher.php +++ b/code/staticpublisher/StaticPublisher.php @@ -11,8 +11,10 @@ abstract class StaticPublisher extends DataObjectDecorator { */ static $echo_progress = false; - // Realtime static publishing... the second a page - // is saved, it is written to the cache + /** + * Realtime static publishing... the second a page + * is saved, it is written to the cache + */ // @todo this is currently disabled until template problems can be fixed static $disable_realtime = true;