diff --git a/pinc/LPage.inc b/pinc/LPage.inc index 17f4085314..89224f4cbd 100644 --- a/pinc/LPage.inc +++ b/pinc/LPage.inc @@ -333,6 +333,7 @@ the project will automatically be made unavailable."; // Now determine whether the project as a whole should be marked bad. // We need 10 or more bad pages reported by 3 or more distinct users. + // (Note duplication of code with pages_indicate_bad_project() in automodify.php) $n_bad_pages = Project_getNumPagesInState( diff --git a/tools/project_manager/automodify.php b/tools/project_manager/automodify.php index 99821180d7..9b0a426a71 100644 --- a/tools/project_manager/automodify.php +++ b/tools/project_manager/automodify.php @@ -52,6 +52,8 @@ function pages_indicate_bad_project( $projectid, $round ) { global $trace; + // (Note duplication of code with LPage::markAsBad in LPage.inc) + // If it has no bad pages, it's good. // $n_bad_pages = Project_getNumPagesInState($projectid,$round->page_bad_state);