* @author Timo Tijhof
*/
+/**
+ * An action that views article content
+ *
+ * This is a wrapper that will call Article::render().
+ *
+ * @ingroup Actions
+ */
class ViewAction extends FormlessAction {
public function getName() {
return 'view';
}
- public function onView(){
+ public function onView() {
return null;
}
- public function show(){
- global $wgSquidMaxage;
-
- $request = $this->getRequest();
- if ( $request->getFullRequestURL() == $this->getTitle()->getInternalURL() ) {
- $this->getOutput()->setSquidMaxage( $wgSquidMaxage );
- }
-
+ public function show() {
$this->page->view();
}
-
}