Merge "Don't look for hooks in .php5 files that don't exist"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 13 Jun 2016 16:30:27 +0000 (16:30 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 13 Jun 2016 16:30:27 +0000 (16:30 +0000)
docs/hooks.txt
includes/skins/Skin.php
resources/src/mediawiki.special/mediawiki.special.search.styles.css

index a83f9c6..b3142ab 100644 (file)
@@ -2993,9 +2993,9 @@ $t: title object searched for
 canceled and a normal search will be performed. Returning true without setting
 $url does a standard redirect to $title. Setting $url redirects to the
 specified URL.
-$term - The string the user searched for
-$title - The title the 'go' feature has decided to forward the user to
-&$url - Initially null, hook subscribers can set this to specify the final url to redirect to
+$term: The string the user searched for
+$title: The title the 'go' feature has decided to forward the user to
+&$url: Initially null, hook subscribers can set this to specify the final url to redirect to
 
 'SpecialSearchNogomatch': Called when user clicked the "Go" button but the
 target doesn't exist.
@@ -3383,6 +3383,7 @@ $title: Title of the page in question
 &$user: User object
 $ip: User's IP address
 &$blocked: Whether the user is blocked, to be modified by the hook
+&$block: The Block object, to be modified by the hook
 
 'UserIsEveryoneAllowed': Check if all users are allowed some user right; return
 false if a UserGetRights hook might remove the named right.
index d70a6b9..fce68bb 100644 (file)
@@ -661,7 +661,7 @@ abstract class Skin extends ContextSource {
 
                if ( $out->isArticle() && MWNamespace::hasSubpages( $out->getTitle()->getNamespace() ) ) {
                        $ptext = $this->getTitle()->getPrefixedText();
-                       if ( preg_match( '/\//', $ptext ) ) {
+                       if ( strpos( $ptext, '/' ) !== false ) {
                                $links = explode( '/', $ptext );
                                array_pop( $links );
                                $c = 0;
index 26c500d..da356b1 100644 (file)
@@ -35,6 +35,9 @@ div.searchresult {
        margin-left: 0;
        float: left;
 }
+.mw-search-interwiki-header {
+       clear: both;
+}
 .mw-search-results li {
        padding-bottom: 1.2em;
        list-style: none;