diff options
Diffstat (limited to 'includes/actions/Action.php')
-rw-r--r-- | includes/actions/Action.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/includes/actions/Action.php b/includes/actions/Action.php index bb6a4d5d..43f03c3a 100644 --- a/includes/actions/Action.php +++ b/includes/actions/Action.php @@ -407,4 +407,14 @@ abstract class Action { * @throws ErrorPageError */ abstract public function show(); + + /** + * Call wfTransactionalTimeLimit() if this request was POSTed + * @since 1.26 + */ + protected function useTransactionalTimeLimit() { + if ( $this->getRequest()->wasPosted() ) { + wfTransactionalTimeLimit(); + } + } } |