Huji has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/374851 )

Change subject: The link from CU log to CU and vice versa should preload the 
target
......................................................................

The link from CU log to CU and vice versa should preload the target

Bug: T174588
Change-Id: I8871ee82c7ee158d88cb1524e2d3daf1d98b6b2d
---
M specials/SpecialCheckUser.php
M specials/SpecialCheckUserLog.php
2 files changed, 5 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CheckUser 
refs/changes/51/374851/1

diff --git a/specials/SpecialCheckUser.php b/specials/SpecialCheckUser.php
index cfc006d..4987754 100644
--- a/specials/SpecialCheckUser.php
+++ b/specials/SpecialCheckUser.php
@@ -28,17 +28,17 @@
 
                $out = $this->getOutput();
                $request = $this->getRequest();
+               $user = $request->getText( 'user', $request->getText( 'ip', 
$subpage ) );
+               $user = trim( $user );
 
                if ( $this->getUser()->isAllowed( 'checkuser-log' ) ) {
                        $subtitleLink = $this->getLinkRenderer()->makeKnownLink(
-                               SpecialPage::getTitleFor( 'CheckUserLog' ),
+                               SpecialPage::getTitleFor( 'CheckUserLog', $user 
),
                                $this->msg( 'checkuser-showlog' )->text()
                        );
                        $out->addSubtitle( $subtitleLink );
                }
 
-               $user = $request->getText( 'user', $request->getText( 'ip', 
$subpage ) );
-               $user = trim( $user );
                $reason = $request->getText( 'reason' );
                $blockreason = $request->getText( 'blockreason', '' );
                $disableUserTalk = $request->getBool( 'blocktalk', false );
diff --git a/specials/SpecialCheckUserLog.php b/specials/SpecialCheckUserLog.php
index 33bb29f..feddc1a 100644
--- a/specials/SpecialCheckUserLog.php
+++ b/specials/SpecialCheckUserLog.php
@@ -16,16 +16,16 @@
 
                $out = $this->getOutput();
                $request = $this->getRequest();
+               $this->target = trim( $request->getVal( 'cuSearch', $par ) );
 
                if ( $this->getUser()->isAllowed( 'checkuser' ) ) {
                        $subtitleLink = $this->getLinkRenderer()->makeKnownLink(
-                               SpecialPage::getTitleFor( 'CheckUser' ),
+                               SpecialPage::getTitleFor( 'CheckUser', 
$this->target ),
                                $this->msg( 'checkuser-showmain' )->text()
                        );
                        $out->addSubtitle( $subtitleLink );
                }
 
-               $this->target = trim( $request->getVal( 'cuSearch', $par ) );
                $type = $request->getVal( 'cuSearchType', 'target' );
 
                $this->displaySearchForm();

-- 
To view, visit https://gerrit.wikimedia.org/r/374851
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8871ee82c7ee158d88cb1524e2d3daf1d98b6b2d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CheckUser
Gerrit-Branch: master
Gerrit-Owner: Huji <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to