From 50badbf19fc1f3e500d9d22bef20ef9a7c9d3aae Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 3 Mar 2008 01:53:45 +0000 Subject: [PATCH] * (bug 13211) Don't break edit buttons when Image namespace includes apostrophe --- includes/EditPage.php | 49 +++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index c03cceb2e2..4b3eea5f71 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1755,16 +1755,16 @@ END $toolarray = array( array( 'image' => 'button_bold.png', 'id' => 'mw-editbutton-bold', - 'open' => '\\\'\\\'\\\'', - 'close' => '\\\'\\\'\\\'', + 'open' => '\'\'\'', + 'close' => '\'\'\'', 'sample'=> wfMsg('bold_sample'), 'tip' => wfMsg('bold_tip'), 'key' => 'B' ), array( 'image' => 'button_italic.png', 'id' => 'mw-editbutton-italic', - 'open' => '\\\'\\\'', - 'close' => '\\\'\\\'', + 'open' => '\'\'', + 'close' => '\'\'', 'sample'=> wfMsg('italic_sample'), 'tip' => wfMsg('italic_tip'), 'key' => 'I' @@ -1787,8 +1787,8 @@ END ), array( 'image' => 'button_headline.png', 'id' => 'mw-editbutton-headline', - 'open' => "\\n== ", - 'close' => " ==\\n", + 'open' => "\n== ", + 'close' => " ==\n", 'sample'=> wfMsg('headline_sample'), 'tip' => wfMsg('headline_tip'), 'key' => 'H' @@ -1812,7 +1812,7 @@ END array( 'image' => 'button_math.png', 'id' => 'mw-editbutton-math', 'open' => "", - 'close' => "<\\/math>", + 'close' => "", 'sample'=> wfMsg('math_sample'), 'tip' => wfMsg('math_tip'), 'key' => 'C' @@ -1820,7 +1820,7 @@ END array( 'image' => 'button_nowiki.png', 'id' => 'mw-editbutton-nowiki', 'open' => "", - 'close' => "<\\/nowiki>", + 'close' => "", 'sample'=> wfMsg('nowiki_sample'), 'tip' => wfMsg('nowiki_tip'), 'key' => 'N' @@ -1835,7 +1835,7 @@ END ), array( 'image' => 'button_hr.png', 'id' => 'mw-editbutton-hr', - 'open' => "\\n----\\n", + 'open' => "\n----\n", 'close' => '', 'sample'=> '', 'tip' => wfMsg('hr_tip'), @@ -1846,22 +1846,21 @@ END $toolbar.=""; -- 2.20.1