Index: trunk/phase3/includes/SkinTemplate.php |
— | — | @@ -440,7 +440,8 @@ |
441 | 441 | // XXX: attach this from javascript, same with section editing |
442 | 442 | if($this->iseditable && $wgUser->getOption("editondblclick") ) |
443 | 443 | { |
444 | | - $tpl->set('body_ondblclick', 'document.location = "' .$content_actions['edit']['href'] .'";'); |
| 444 | + $encEditUrl = wfEscapeJsString( $this->mTitle->getLocalUrl( $this->editUrlOptions() ) ); |
| 445 | + $tpl->set('body_ondblclick', 'document.location = "' . $encEditUrl . '";'); |
445 | 446 | } else { |
446 | 447 | $tpl->set('body_ondblclick', false); |
447 | 448 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -109,6 +109,7 @@ |
110 | 110 | * (bug 10083) Fix for Special:Version breakage on PHP 5.2 with some hooks |
111 | 111 | * (bug 3624) TeX: \ker, \hom, \arg, \dim treated like \sin & \cos |
112 | 112 | * (bug 10132, 10134) Restore back-compatibility Image::imageUrl() function |
| 113 | +* (bug 10113) Fix double-click for view source on protected pages |
113 | 114 | |
114 | 115 | |
115 | 116 | == MediaWiki API changes since 1.10 == |