Index: trunk/phase3/includes/Title.php |
— | — | @@ -3026,6 +3026,16 @@ |
3027 | 3027 | array( 'ORDER BY' => 'rev_id' ) |
3028 | 3028 | ); |
3029 | 3029 | } |
| 3030 | + |
| 3031 | + /** |
| 3032 | + * Check if this is a new page |
| 3033 | + * |
| 3034 | + * @return bool |
| 3035 | + */ |
| 3036 | + public function isNewPage() { |
| 3037 | + $dbr = wfGetDB( DB_SLAVE ); |
| 3038 | + return (bool)$dbr->selectField( 'page', 'page_is_new', $this->pageCond(), __METHOD__ ); |
| 3039 | + } |
3030 | 3040 | |
3031 | 3041 | /** |
3032 | 3042 | * Get the oldest revision timestamp of this page |