Chad has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/102295


Change subject: Remove pointless function
......................................................................

Remove pointless function

Change-Id: I7a59bac7f21bd7e4254358ce397dabb3452f1903
---
M TitleKey_body.php
1 file changed, 1 insertion(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TitleKey 
refs/changes/95/102295/1

diff --git a/TitleKey_body.php b/TitleKey_body.php
index 9b02a9d..513df91 100644
--- a/TitleKey_body.php
+++ b/TitleKey_body.php
@@ -40,7 +40,7 @@
                        $rows[] = array(
                                'tk_page' => $id,
                                'tk_namespace' => $title->getNamespace(),
-                               'tk_key' => self::normalizeTitle( $title ),
+                               'tk_key' => self::normalize( $title->getText() 
),
                        );
                }
                $db = wfGetDB( DB_MASTER );
@@ -51,10 +51,6 @@
        
        
        // Normalization...
-       static function normalizeTitle( $title ) {
-               return self::normalize( $title->getText() );
-       }
-       
        static function normalize( $text ) {
                global $wgContLang;
                return $wgContLang->caseFold( $text );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7a59bac7f21bd7e4254358ce397dabb3452f1903
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/TitleKey
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>

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

Reply via email to