Added missing calls to SpecialPage::setHeaders() and SpecialPage::outputHeader()
[lhc/web/wiklou.git] / includes / api / ApiQueryLogEvents.php
index 11b1224..db75c8e 100644 (file)
@@ -323,8 +323,7 @@ class ApiQueryLogEvents extends ApiQueryBase {
                                }
 
                                if ( $this->fld_parsedcomment ) {
-                                       global $wgUser;
-                                       $vals['parsedcomment'] = $wgUser->getSkin()->formatComment( $row->log_comment, $title );
+                                       $vals['parsedcomment'] = Linker::formatComment( $row->log_comment, $title );
                                }
                        }
                }
@@ -445,7 +444,7 @@ class ApiQueryLogEvents extends ApiQueryBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=query&list=logevents'
                );