Index: trunk/extensions/Translate/TranslateUtils.php |
— | — | @@ -89,12 +89,12 @@ |
90 | 90 | } |
91 | 91 | |
92 | 92 | public static function getMessageContent( $key, $language ) { |
| 93 | + wfProfileIn( __METHOD__ ); |
93 | 94 | $title = self::title( $key, $language ); |
94 | | - self::doExistenceQuery(); |
95 | | - if ( !isset(self::$contents[$title]) && isset(self::$pageExists[$key]) ) { |
| 95 | + if ( !isset(self::$contents[$title]) ) { |
96 | 96 | self::getContents( array( $title ) ); |
97 | 97 | } |
98 | | - |
| 98 | + wfProfileOut( __METHOD__ ); |
99 | 99 | return isset(self::$contents[$title]) ? self::$contents[$title] : null; |
100 | 100 | } |
101 | 101 | |
— | — | @@ -102,6 +102,7 @@ |
103 | 103 | private static $contents = array(); |
104 | 104 | private static $editors = array(); |
105 | 105 | private static function getContents( Array $titles ) { |
| 106 | + wfProfileIn( __METHOD__ ); |
106 | 107 | $dbr = wfGetDB( DB_SLAVE ); |
107 | 108 | $rows = $dbr->select( array( 'page', 'revision', 'text' ), |
108 | 109 | array( 'page_title', 'old_text', 'old_flags', 'rev_user_text' ), |
— | — | @@ -122,13 +123,16 @@ |
123 | 124 | } |
124 | 125 | |
125 | 126 | $rows->free(); |
| 127 | + wfProfileOut( __METHOD__ ); |
126 | 128 | } |
127 | 129 | |
128 | 130 | |
129 | 131 | private static $pageExists = null; |
130 | 132 | private static $talkExists = null; |
131 | 133 | private static function doExistenceQuery() { |
| 134 | + wfProfileIn( __METHOD__ ); |
132 | 135 | if ( self::$pageExists !== null && self::$talkExists !== null ) { |
| 136 | + wfProfileOut( __METHOD__ ); |
133 | 137 | return; |
134 | 138 | } |
135 | 139 | |
— | — | @@ -148,6 +152,7 @@ |
149 | 153 | } |
150 | 154 | } |
151 | 155 | $rows->free(); |
| 156 | + wfProfileOut( __METHOD__ ); |
152 | 157 | } |
153 | 158 | |
154 | 159 | /* Table output helpers */ |
Index: trunk/extensions/Translate/MessageGroups.php |
— | — | @@ -1107,10 +1107,6 @@ |
1108 | 1108 | |
1109 | 1109 | protected $arrName = 'wgRenameuserMessages'; |
1110 | 1110 | protected $messageFile = 'Renameuser/SpecialRenameuser.i18n.php'; |
1111 | | - |
1112 | | - function fillBools( &$array ) { |
1113 | | - $array['renameuserlogentry']['ignored'] = true; |
1114 | | - } |
1115 | 1111 | } |
1116 | 1112 | |
1117 | 1113 | class ResignMessageGroup extends ExtensionMessageGroup { |