From 5c13aa6303d771a7139a2ef432b44d945dacbddf Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 9 Jun 2008 14:17:16 +0000 Subject: [PATCH] (bug 11951) EditPage::getEditToolbar() is now static. Should make life easier for extensions. --- RELEASE-NOTES | 1 + includes/EditPage.php | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index eb850c0156..f0c74ed2e8 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -349,6 +349,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN and $2 (=revision numbers) * (bug 14401) Fix Safari access key tooltips for Windows and >3.1 Mac versions * (bug 14432) Fix notice regression in Special:Newpages feed mode +* (bug 11951) EditPage::getEditToolbar() is now static. === API changes in 1.13 === diff --git a/includes/EditPage.php b/includes/EditPage.php index 80c44717f2..48203d1518 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1205,7 +1205,7 @@ class EditPage { if( $wgUser->getOption('showtoolbar') and !$this->isCssJsSubpage ) { # prepare toolbar for edit buttons - $toolbar = $this->getEditToolbar(); + $toolbar = EditPage::getEditToolbar(); } else { $toolbar = ''; } @@ -1791,8 +1791,10 @@ END * Shows a bulletin board style toolbar for common editing functions. * It can be disabled in the user preferences. * The necessary JavaScript code can be found in style/wikibits.js. + * + * @return string */ - function getEditToolbar() { + static function getEditToolbar() { global $wgStylePath, $wgContLang, $wgJsMimeType; /** -- 2.20.1