Replace deprecated Title::escapeFragmentForURL by Sanitizer::escapeIdForLink.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Mon, 27 May 2019 19:30:15 +0000 (19:30 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Mon, 27 May 2019 19:30:15 +0000 (19:30 +0000)
git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/mediawiki_extensions/wrreport/trunk@2828 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrreport_body.php

index 97dedba8d9d301a3823c09f75c2ab1b601a9196c..95e4407767894f6fd38ca74d32dbc292a4403a59 100644 (file)
@@ -827,17 +827,17 @@ class WrReport {
 
                                $td = $tr->appendElement('td');
                                if (isset(WrReport::$wrConditions[$condition])) {
-                                       $td->appendElement('a', array('href' => $title->getLocalURL() . '#' . Title::escapeFragmentForURL(wfMessage('wrreport-reports-sectionname')->text())))->appendText(WrReport::$wrConditions[$condition]);
+                                       $td->appendElement('a', array('href' => $title->getLocalURL() . '#' . Sanitizer::escapeIdForLink(wfMessage('wrreport-reports-sectionname'))))->appendText(WrReport::$wrConditions[$condition]);
                                        $td->appendText(' ');
                                        $small = $td->appendElement('small');
                                        $small->appendText($date);
                                        if ($userMayReportThis) {
                                                $small->appendText(' ');
-                                               $small->appendElement('em')->appendElement('a', array('href' =>$title->getLocalURL() . '#' . Title::escapeFragmentForURL(wfMessage('wrreport-newreport-sectionname')->text())))->appendText(wfMessage('wrreport-newreport-new')->text());
+                                               $small->appendElement('em')->appendElement('a', array('href' =>$title->getLocalURL() . '#' . Sanitizer::escapeIdForLink(wfMessage('wrreport-newreport-sectionname'))))->appendText(wfMessage('wrreport-newreport-new')->text());
                                        }
                                } else {
                                        if ($userMayReportThis)
-                                               $td->appendElement('small')->appendElement('em')->appendElement('a', array('href' =>$title->getLocalURL() . '#' . Title::escapeFragmentForURL(wfMessage('wrreport-newreport-sectionname')->text())))->appendText(wfMessage('wrreport-newreport-please')->text());
+                                               $td->appendElement('small')->appendElement('em')->appendElement('a', array('href' =>$title->getLocalURL() . '#' . Sanitizer::escapeIdForLink(wfMessage('wrreport-newreport-sectionname'))))->appendText(wfMessage('wrreport-newreport-please')->text());
                                        else $td->appendText('--');
                                }
                        }