Index: trunk/extensions/PlayerStatsGrabber/PlayerStatsGrabber_body.php |
— | — | @@ -78,7 +78,7 @@ |
79 | 79 | // print "EMBED C: $embed_code \n"; |
80 | 80 | // $q = 'action='.$this->action; |
81 | 81 | # if ( "no" == $redirect ) { $q .= "&redirect=no"; } |
82 | | - // $action = $wgScript.'?title='.$wgTitle->getDBKey() . '/Thanks'; |
| 82 | + // $action = $wgScript.'?title='.$wgTitle->getDBkey() . '/Thanks'; |
83 | 83 | $action = $wgTitle->getLocalURL( 'action=submit' ); |
84 | 84 | $jsUserHash = sha1( $wgUser->getName() . $wgProxyKey ); |
85 | 85 | $enUserHash = Xml::encodeJsVar( $jsUserHash ); |
Index: trunk/extensions/SemanticMediaWiki/specials/Export/SMW_SpecialOWLExport.php |
— | — | @@ -262,7 +262,7 @@ |
263 | 263 | $title = Title::newFromText($page); |
264 | 264 | if (NULL === $title) continue; //invalid title name given |
265 | 265 | $st = new SMWSmallTitle(); |
266 | | - $st->dbkey = $title->getDBKey(); |
| 266 | + $st->dbkey = $title->getDBkey(); |
267 | 267 | $st->namespace = $title->getNamespace(); |
268 | 268 | $cur_queue[] = $st; |
269 | 269 | } |
— | — | @@ -343,7 +343,7 @@ |
344 | 344 | if ( ($title === NULL) || !smwfIsSemanticsProcessed($title->getNamespace()) ) continue; |
345 | 345 | if ( !OWLExport::fitsNsRestriction($ns_restriction, $title->getNamespace()) ) continue; |
346 | 346 | $st = new SMWSmallTitle(); |
347 | | - $st->dbkey = $title->getDBKey(); |
| 347 | + $st->dbkey = $title->getDBkey(); |
348 | 348 | $st->namespace = $title->getNamespace(); |
349 | 349 | $cur_queue = array($st); |
350 | 350 | $a_count++; //DEBUG |
— | — | @@ -677,7 +677,7 @@ |
678 | 678 | $inSubs = smwfGetStore()->getPropertySubjects( $inRel, $value ); |
679 | 679 | foreach($inSubs as $inSub) { |
680 | 680 | $stb = new SMWSmallTitle(); |
681 | | - $stb->dbkey = $inSub->getDBKey(); |
| 681 | + $stb->dbkey = $inSub->getDBkey(); |
682 | 682 | $stb->namespace = $inSub->getNamespace(); |
683 | 683 | if (!array_key_exists($stb->getHash(), $this->element_done)) { |
684 | 684 | $semdata = smwfGetStore()->getSemanticData($inSub, array('__spu', '__typ', '__imp')); |
— | — | @@ -694,7 +694,7 @@ |
695 | 695 | $pinst = SMWPropertyValue::makeProperty('_INST'); |
696 | 696 | foreach($instances as $instance) { |
697 | 697 | $stb = new SMWSmallTitle(); |
698 | | - $stb->dbkey = $instance->getDBKey(); |
| 698 | + $stb->dbkey = $instance->getDBkey(); |
699 | 699 | $stb->namespace = $instance->getNamespace(); |
700 | 700 | if (!array_key_exists($stb->getHash(), $this->element_done)) { |
701 | 701 | $semdata = smwfGetStore()->getSemanticData($instance, array('__spu', '__typ', '__imp')); |
— | — | @@ -715,7 +715,7 @@ |
716 | 716 | while ($resarray !== false) { |
717 | 717 | $instance = end($resarray)->getNextObject(); |
718 | 718 | $stb = new SMWSmallTitle(); |
719 | | - $stb->dbkey = $instance->getDBKey(); |
| 719 | + $stb->dbkey = $instance->getDBkey(); |
720 | 720 | $stb->namespace = $instance->getNamespace(); |
721 | 721 | if (!array_key_exists($stb->getHash(), $this->element_done)) { |
722 | 722 | $semdata = smwfGetStore()->getSemanticData($instance, array('__spu', '__typ', '__imp')); |
— | — | @@ -795,7 +795,7 @@ |
796 | 796 | if ($title instanceof SMWWikiPageValue) { |
797 | 797 | $spt = new SMWSmallTitle(); |
798 | 798 | $title = $title->getTitle(); |
799 | | - $spt->dbkey = $title->getDBKey(); |
| 799 | + $spt->dbkey = $title->getDBkey(); |
800 | 800 | $spt->namespace = $title->getNamespace(); |
801 | 801 | $spt->modifier = $element->getModifier(); |
802 | 802 | if ( !array_key_exists($spt->getHash(), $this->element_done) ) { |
Index: trunk/extensions/SemanticMediaWiki/includes/export/SMW_Exporter.php |
— | — | @@ -200,7 +200,7 @@ |
201 | 201 | if ($dv->getNamespace() == SMW_NS_PROPERTY) { |
202 | 202 | $namespace = '&property;'; |
203 | 203 | $namespaceid = 'property'; |
204 | | - $localname = SMWExporter::encodeURI(rawurlencode($dv->getTitle()->getDBKey())); |
| 204 | + $localname = SMWExporter::encodeURI(rawurlencode($dv->getTitle()->getDBkey())); |
205 | 205 | if (in_array($localname[0], array('-','0','1','2','3','4','5','6','7','8','9'))) { |
206 | 206 | $namespace = '&wiki;'; |
207 | 207 | $namespaceid = 'wiki'; |
Index: trunk/extensions/SemanticMediaWiki/includes/articlepages/SMW_PropertyPage.php |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | protected function initParameters() { |
27 | 27 | global $smwgContLang, $smwgPropertyPagingLimit; |
28 | 28 | $this->limit = $smwgPropertyPagingLimit; |
29 | | - $this->mProperty = SMWPropertyValue::makeProperty($this->mTitle->getDBKey()); |
| 29 | + $this->mProperty = SMWPropertyValue::makeProperty($this->mTitle->getDBkey()); |
30 | 30 | return true; |
31 | 31 | } |
32 | 32 | |
Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2_Queries.php |
— | — | @@ -78,8 +78,8 @@ |
79 | 79 | */ |
80 | 80 | public function refreshConceptCache($concept) { |
81 | 81 | global $smwgQMaxLimit, $smwgQConceptFeatures, $wgDBtype; |
82 | | - $cid = $this->m_store->getSMWPageID($concept->getDBKey(), SMW_NS_CONCEPT, ''); |
83 | | - $cid_c = $this->m_store->getSMWPageID($concept->getDBKey(), SMW_NS_CONCEPT, '', false); |
| 82 | + $cid = $this->m_store->getSMWPageID($concept->getDBkey(), SMW_NS_CONCEPT, ''); |
| 83 | + $cid_c = $this->m_store->getSMWPageID($concept->getDBkey(), SMW_NS_CONCEPT, '', false); |
84 | 84 | if ($cid != $cid_c) { |
85 | 85 | $this->m_errors[] = "Skipping redirect concept."; |
86 | 86 | return $this->m_errors; |
— | — | @@ -135,7 +135,7 @@ |
136 | 136 | * @param $concept Title |
137 | 137 | */ |
138 | 138 | public function deleteConceptCache($concept) { |
139 | | - $cid = $this->m_store->getSMWPageID($concept->getDBKey(), SMW_NS_CONCEPT, '', false); |
| 139 | + $cid = $this->m_store->getSMWPageID($concept->getDBkey(), SMW_NS_CONCEPT, '', false); |
140 | 140 | $this->m_dbs->delete('smw_conccache', array('o_id' => $cid), 'SMW::refreshConceptCache'); |
141 | 141 | $this->m_dbs->update('smw_conc2', array('cache_date' => NULL, 'cache_count' => NULL), array('s_id' => $cid), 'SMW::refreshConceptCache'); |
142 | 142 | } |
— | — | @@ -403,7 +403,7 @@ |
404 | 404 | } |
405 | 405 | } |
406 | 406 | } elseif ($description instanceof SMWConceptDescription) { // fetch concept definition and insert it here |
407 | | - $cid = $this->m_store->getSMWPageID($description->getConcept()->getDBKey(), SMW_NS_CONCEPT, ''); |
| 407 | + $cid = $this->m_store->getSMWPageID($description->getConcept()->getDBkey(), SMW_NS_CONCEPT, ''); |
408 | 408 | $row = $this->m_dbs->selectRow('smw_conc2', |
409 | 409 | array('concept_txt','concept_features','concept_size','concept_depth','cache_date'), |
410 | 410 | array('s_id'=>$cid), 'SMWSQLStore2Queries::compileQueries'); |
Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_RAPStore2.php |
— | — | @@ -160,13 +160,13 @@ |
161 | 161 | $this->removeSubjectFromRAP($rdfmodel, $rapsubold); |
162 | 162 | |
163 | 163 | $newpage = SMWDataValueFactory::newTypeIDValue('_wpg'); |
164 | | - $newpage->setValues($newtitle->getDBKey(), $newtitle->getNamespace(), $pageid); |
| 164 | + $newpage->setValues($newtitle->getDBkey(), $newtitle->getNamespace(), $pageid); |
165 | 165 | $semdata = $this->getSemanticData($newpage); |
166 | 166 | $this->updateData($semdata,false); |
167 | 167 | |
168 | 168 | // Save the old page |
169 | 169 | $oldpage = SMWDataValueFactory::newTypeIDValue('_wpg'); |
170 | | - $oldpage->setValues($oldtitle->getDBKey(), $oldtitle->getNamespace(), $redirid); |
| 170 | + $oldpage->setValues($oldtitle->getDBkey(), $oldtitle->getNamespace(), $redirid); |
171 | 171 | $semdata = $this->getSemanticData($oldpage); |
172 | 172 | $this->updateData($semdata,false); |
173 | 173 | |
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php |
— | — | @@ -181,7 +181,7 @@ |
182 | 182 | } |
183 | 183 | if ($title->getNamespace() == SMW_NS_PROPERTY) { |
184 | 184 | $printmode = SMWPrintRequest::PRINT_PROP; |
185 | | - $property = SMWPropertyValue::makeProperty($title->getDBKey()); |
| 185 | + $property = SMWPropertyValue::makeProperty($title->getDBkey()); |
186 | 186 | $data = $property; |
187 | 187 | $label = $showmode?'':$property->getWikiValue(); // default |
188 | 188 | } elseif ($title->getNamespace() == NS_CATEGORY) { |
Index: trunk/extensions/SocialProfile/UserStats/UserStatsClass.php |
— | — | @@ -282,7 +282,7 @@ |
283 | 283 | $ctg = 'Opinions by User ' . ( $this->user_name ); |
284 | 284 | $parser = new Parser(); |
285 | 285 | $CtgTitle = Title::newFromText( $parser->transformMsg( trim( $ctg ), $wgOut->parserOptions() ) ); |
286 | | - $CtgTitle = $CtgTitle->getDBKey(); |
| 286 | + $CtgTitle = $CtgTitle->getDBkey(); |
287 | 287 | $dbw = wfGetDB( DB_MASTER ); |
288 | 288 | $sql = "UPDATE ".$wgDBprefix."user_stats SET stats_opinions_created="; |
289 | 289 | $sql .= "(SELECT count(*) AS CreatedOpinions FROM {$dbw->tableName( 'page' )} INNER JOIN {$dbw->tableName( 'categorylinks' )} ON page_id = cl_from WHERE (cl_to) = " . $dbw->addQuotes($CtgTitle) . " "; |
— | — | @@ -301,7 +301,7 @@ |
302 | 302 | $dbw = wfGetDB( DB_MASTER ); |
303 | 303 | $ctg = 'Opinions by User ' . ( $this->user_name ); |
304 | 304 | $CtgTitle = Title::newFromText( $parser->transformMsg( trim( $ctg ), $wgOut->parserOptions() ) ); |
305 | | - $CtgTitle = $CtgTitle->getDBKey(); |
| 305 | + $CtgTitle = $CtgTitle->getDBkey(); |
306 | 306 | $sql = "UPDATE ".$wgDBprefix."user_stats SET stats_opinions_published = "; |
307 | 307 | $sql .= "(SELECT count(*) AS PromotedOpinions FROM {$dbw->tableName( 'page' )} INNER JOIN {$dbw->tableName( 'categorylinks' )} ON page_id = cl_from INNER JOIN published_page ON page_id=published_page_id WHERE (cl_to) = " . $dbw->addQuotes($CtgTitle) . " AND published_type=1 " . " " . $timeSQL; |
308 | 308 | $sql .= ")"; |
Index: trunk/extensions/MetavidWiki/maintenance/maintenance_util.inc.php |
— | — | @@ -103,7 +103,7 @@ |
104 | 104 | $wgTitle = Title::makeTitle( $ns, ucfirst( $wgTitle ) ); |
105 | 105 | } |
106 | 106 | |
107 | | - if ( trim( $wgTitle->getDBKey() ) == '' ) { |
| 107 | + if ( trim( $wgTitle->getDBkey() ) == '' ) { |
108 | 108 | print "empty title (no insert /update) \n"; |
109 | 109 | return ; |
110 | 110 | } |
Index: trunk/extensions/MetavidWiki/includes/MV_Title.php |
— | — | @@ -36,11 +36,11 @@ |
37 | 37 | if ( is_string( $title ) ) { |
38 | 38 | $title = parent::makeTitle( $ns, $title ); |
39 | 39 | } |
40 | | - //print "RAN TITLE: ". $title->getDBKey(); |
| 40 | + //print "RAN TITLE: ". $title->getDBkey(); |
41 | 41 | $this->inheritTitle( $title ) ; |
42 | 42 | // its just a plain string generate the parse info |
43 | | - $this->wiki_title = $title->getDBKey(); |
44 | | - $this->parseTitle( $title->getDBKey() ); |
| 43 | + $this->wiki_title = $title->getDBkey(); |
| 44 | + $this->parseTitle( $title->getDBkey() ); |
45 | 45 | // print "mv_title stream name: " . $this->stream_name. "\n"; |
46 | 46 | } |
47 | 47 | function inheritTitle( & $title ) { |
Index: trunk/extensions/MetavidWiki/includes/MV_MetavidInterface/MV_Overlay.php |
— | — | @@ -617,7 +617,7 @@ |
618 | 618 | $o .= '<div id="mv_ext_cat_container_' . htmlspecialchars( $mvd_id ) . '"></div>'; |
619 | 619 | foreach ( $metaData['categories'] as $cat => $page ) { |
620 | 620 | $catTitle = Title::newFromText( $cat, NS_CATEGORY ); |
621 | | - $o .= '<span id="ext_cat_' . htmlspecialchars( $i ) . '"><input value="' . $catTitle->getDBKey() . '" type="hidden" style="display:none;" name="ext_cat_' . $i . '" class="mv_ext_cat">' . |
| 621 | + $o .= '<span id="ext_cat_' . htmlspecialchars( $i ) . '"><input value="' . $catTitle->getDBkey() . '" type="hidden" style="display:none;" name="ext_cat_' . $i . '" class="mv_ext_cat">' . |
622 | 622 | $catTitle->getText() . |
623 | 623 | '<a href="#" onclick="$j(\'#ext_cat_' . $i . '\').fadeOut(\'fast\').remove();return false;"> |
624 | 624 | <img border="0" src="' . $mvgScriptPath . '/skins/images/delete.png"> |
Index: trunk/extensions/MetavidWiki/includes/MV_MetavidInterface/MV_SequencePlayer.php |
— | — | @@ -31,7 +31,7 @@ |
32 | 32 | 'src="' . $this->getExportUrl() . '"></playlist>'; |
33 | 33 | } |
34 | 34 | function getExportUrl(){ |
35 | | - $exportTitle = Title::MakeTitle( NS_SPECIAL, 'MvExportSequence/' . $this->seqTitle->getDBKey() ); |
| 35 | + $exportTitle = Title::MakeTitle( NS_SPECIAL, 'MvExportSequence/' . $this->seqTitle->getDBkey() ); |
36 | 36 | $export_url = $exportTitle->getFullURL(); |
37 | 37 | if($this->oldid!=''){ |
38 | 38 | $ss = ( strpos( $export_url, '?' ) === false ) ? '?':'&'; |
Index: trunk/extensions/FlaggedRevs/specialpages/UnreviewedPages_body.php |
— | — | @@ -129,7 +129,7 @@ |
130 | 130 | if( $wgMiserMode ) { |
131 | 131 | # Get a rough idea of size |
132 | 132 | $count = $dbr->estimateRowCount( 'watchlist', '*', |
133 | | - array( 'wl_namespace' => $title->getNamespace(), 'wl_title' => $title->getDBKey() ), |
| 133 | + array( 'wl_namespace' => $title->getNamespace(), 'wl_title' => $title->getDBkey() ), |
134 | 134 | __METHOD__ ); |
135 | 135 | } |
136 | 136 | # If it is small, just COUNT() it, otherwise, stick with estimate... |
— | — | @@ -139,7 +139,7 @@ |
140 | 140 | $cutoff = $dbr->timestamp( wfTimestamp( TS_UNIX ) - 2*$wgCookieExpiration ); |
141 | 141 | $res = $dbr->select( array('watchlist','user'), '1', |
142 | 142 | array( 'wl_namespace' => $title->getNamespace(), |
143 | | - 'wl_title' => $title->getDBKey(), |
| 143 | + 'wl_title' => $title->getDBkey(), |
144 | 144 | 'wl_user = user_id', |
145 | 145 | // logged in or out |
146 | 146 | 'user_touched > '.$dbr->addQuotes( $cutoff ) ), |
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -333,7 +333,7 @@ |
334 | 334 | } |
335 | 335 | # Check cache before doing another DB hit... |
336 | 336 | $idP = FlaggedRevs::getTemplateIdFromCache( $parser->getRevisionId(), |
337 | | - $title->getNamespace(), $title->getDBKey() ); |
| 337 | + $title->getNamespace(), $title->getDBkey() ); |
338 | 338 | # Use the process cache key if it's newer or we have none yet |
339 | 339 | if( !is_null($idP) && (!$id || $idP > $id) ) { |
340 | 340 | $id = $idP; |
— | — | @@ -381,7 +381,7 @@ |
382 | 382 | $isKnownLocal = $isLocalFile = false; // local file on this wiki? |
383 | 383 | # Normalize NS_MEDIA to NS_FILE |
384 | 384 | if( $nt->getNamespace() == NS_MEDIA ) { |
385 | | - $title = Title::makeTitle( NS_FILE, $nt->getDBKey() ); |
| 385 | + $title = Title::makeTitle( NS_FILE, $nt->getDBkey() ); |
386 | 386 | $title->resetArticleId( $nt->getArticleId() ); // avoid extra queries |
387 | 387 | } else { |
388 | 388 | $title =& $nt; |
— | — | @@ -399,7 +399,7 @@ |
400 | 400 | } |
401 | 401 | } |
402 | 402 | # Check cache before doing another DB hit... |
403 | | - $params = FlaggedRevs::getFileVersionFromCache( $parser->getRevisionId(), $title->getDBKey() ); |
| 403 | + $params = FlaggedRevs::getFileVersionFromCache( $parser->getRevisionId(), $title->getDBkey() ); |
404 | 404 | if( is_array($params) ) { |
405 | 405 | list($timeP,$sha1P) = $params; |
406 | 406 | // Take the newest one... |
— | — | @@ -485,7 +485,7 @@ |
486 | 486 | } |
487 | 487 | } |
488 | 488 | # Check cache before doing another DB hit... |
489 | | - $params = FlaggedRevs::getFileVersionFromCache( $ig->mRevisionId, $nt->getDBKey() ); |
| 489 | + $params = FlaggedRevs::getFileVersionFromCache( $ig->mRevisionId, $nt->getDBkey() ); |
490 | 490 | if( is_array($params) ) { |
491 | 491 | list($timeP,$sha1P) = $params; |
492 | 492 | // Take the newest one... |
— | — | @@ -1055,7 +1055,7 @@ |
1056 | 1056 | $dbr = wfGetDB( DB_SLAVE ); |
1057 | 1057 | $blocked = $dbr->selectField( 'logging', '1', |
1058 | 1058 | array( 'log_namespace' => NS_USER, |
1059 | | - 'log_title' => $user->getUserPage()->getDBKey(), |
| 1059 | + 'log_title' => $user->getUserPage()->getDBkey(), |
1060 | 1060 | 'log_type' => 'block', |
1061 | 1061 | 'log_action' => 'block' ), |
1062 | 1062 | __METHOD__, |
— | — | @@ -1074,7 +1074,7 @@ |
1075 | 1075 | $dbr = isset($dbr) ? $dbr : wfGetDB( DB_SLAVE ); |
1076 | 1076 | $size = $dbr->selectField( 'page', 'page_len', |
1077 | 1077 | array( 'page_namespace' => $user->getUserPage()->getNamespace(), |
1078 | | - 'page_title' => $user->getUserPage()->getDBKey() ), |
| 1078 | + 'page_title' => $user->getUserPage()->getDBkey() ), |
1079 | 1079 | __METHOD__ ); |
1080 | 1080 | if( $size < $wgFlaggedRevsAutopromote['userpageBytes'] ) { |
1081 | 1081 | return true; |
Index: trunk/extensions/AbuseFilter/SpecialAbuseLog.php |
— | — | @@ -109,7 +109,7 @@ |
110 | 110 | $searchTitle = Title::newFromText( $this->mSearchTitle ); |
111 | 111 | if ( $this->mSearchTitle && $searchTitle ) { |
112 | 112 | $conds['afl_namespace'] = $searchTitle->getNamespace(); |
113 | | - $conds['afl_title'] = $searchTitle->getDBKey(); |
| 113 | + $conds['afl_title'] = $searchTitle->getDBkey(); |
114 | 114 | } |
115 | 115 | |
116 | 116 | $pager = new AbuseLogPager( $this, $conds ); |
Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewTestBatch.php |
— | — | @@ -96,7 +96,7 @@ |
97 | 97 | if ($this->mTestPage) { |
98 | 98 | $title = Title::newFromText( $this->mTestPage ); |
99 | 99 | $conds['rc_namespace'] = $title->getNamespace(); |
100 | | - $conds['rc_title'] = $title->getDBKey(); |
| 100 | + $conds['rc_title'] = $title->getDBkey(); |
101 | 101 | } |
102 | 102 | |
103 | 103 | // Get our ChangesList |
Index: trunk/extensions/AbuseFilter/AbuseFilter.class.php |
— | — | @@ -695,7 +695,7 @@ |
696 | 696 | 'afl_user_text' => $wgUser->getName(), |
697 | 697 | 'afl_timestamp' => $dbr->timestamp(wfTimestampNow()), |
698 | 698 | 'afl_namespace' => $title->getNamespace(), |
699 | | - 'afl_title' => $title->getDBKey(), |
| 699 | + 'afl_title' => $title->getDBkey(), |
700 | 700 | 'afl_ip' => wfGetIp() ); |
701 | 701 | |
702 | 702 | // Hack to avoid revealing IPs of people creating accounts |
Index: trunk/extensions/Oversight/HideRevision_body.php |
— | — | @@ -604,7 +604,7 @@ |
605 | 605 | $this->mForm = $form; |
606 | 606 | $this->mConds = $conds; |
607 | 607 | $this->namespace = $title ? $title->getNamespace() : -1; |
608 | | - $this->dbKey = $title ? $title->getDBKey() : null; |
| 608 | + $this->dbKey = $title ? $title->getDBkey() : null; |
609 | 609 | $this->uid = $user ? $user->getId() : null; |
610 | 610 | if( strlen($offender) ) { |
611 | 611 | $offender = User::newFromName( $offender, false ); |
Index: trunk/extensions/Collection/Collection.body.php |
— | — | @@ -375,7 +375,7 @@ |
376 | 376 | ); |
377 | 377 | $where = array( |
378 | 378 | 'cl_from=page_id', |
379 | | - 'cl_to' => $title->getDBKey(), |
| 379 | + 'cl_to' => $title->getDBkey(), |
380 | 380 | ); |
381 | 381 | $res = $db->select( $tables, $fields, $where, __METHOD__, $options ); |
382 | 382 | $members = array(); |
Index: trunk/extensions/Renameuser/SpecialRenameuser_body.php |
— | — | @@ -440,10 +440,10 @@ |
441 | 441 | $oldTitle = Title::makeTitle( NS_USER, $this->old ); |
442 | 442 | $newTitle = Title::makeTitle( NS_USER, $this->new ); |
443 | 443 | $dbw->update( 'logging', |
444 | | - array( 'log_title' => $newTitle->getDBKey() ), |
| 444 | + array( 'log_title' => $newTitle->getDBkey() ), |
445 | 445 | array( 'log_type' => array( 'block', 'rights' ), |
446 | 446 | 'log_namespace' => NS_USER, |
447 | | - 'log_title' => $oldTitle->getDBKey() ), |
| 447 | + 'log_title' => $oldTitle->getDBkey() ), |
448 | 448 | __METHOD__ ); |
449 | 449 | // Do immediate updates! |
450 | 450 | foreach( $this->tables as $table => $fieldSet ) { |
Index: trunk/extensions/Drafts/Drafts.classes.php |
— | — | @@ -46,7 +46,7 @@ |
47 | 47 | // Adds new page information to conditions |
48 | 48 | $where['draft_page'] = 0; // page not created yet |
49 | 49 | $where['draft_namespace'] = $title->getNamespace(); |
50 | | - $where['draft_title'] = $title->getDBKey(); |
| 50 | + $where['draft_title'] = $title->getDBkey(); |
51 | 51 | } |
52 | 52 | } |
53 | 53 | // Checks if specific user was given |
— | — | @@ -99,7 +99,7 @@ |
100 | 100 | $dbw->update( 'drafts', |
101 | 101 | array( |
102 | 102 | 'draft_namespace' => $newTitle->getNamespace(), |
103 | | - 'draft_title' => $newTitle->getDBKey() |
| 103 | + 'draft_title' => $newTitle->getDBkey() |
104 | 104 | ), |
105 | 105 | array( |
106 | 106 | 'draft_page' => $newTitle->getArticleId() |
— | — | @@ -140,7 +140,7 @@ |
141 | 141 | } else { |
142 | 142 | // Adds new page information to conditions |
143 | 143 | $where['draft_namespace'] = $title->getNamespace(); |
144 | | - $where['draft_title'] = $title->getDBKey(); |
| 144 | + $where['draft_title'] = $title->getDBkey(); |
145 | 145 | } |
146 | 146 | } |
147 | 147 | // Checks if a specific user was given |
— | — | @@ -654,7 +654,7 @@ |
655 | 655 | 'draft_token' => (int) $this->getToken(), |
656 | 656 | 'draft_user' => (int) $wgUser->getID(), |
657 | 657 | 'draft_namespace' => (int) $this->title->getNamespace(), |
658 | | - 'draft_title' => (string) $this->title->getDBKey(), |
| 658 | + 'draft_title' => (string) $this->title->getDBkey(), |
659 | 659 | 'draft_page' => (int) $this->title->getArticleId(), |
660 | 660 | 'draft_section' => |
661 | 661 | $this->section == '' ? null : (int) $this->section, |
Index: trunk/extensions/DynamicPageList/DynamicPageList2.php |
— | — | @@ -1453,12 +1453,12 @@ |
1454 | 1454 | $sParamList = explode('|',self::getSubcategories(substr($sParam,1),$sPageTable)); |
1455 | 1455 | foreach ($sParamList as $sPar) { |
1456 | 1456 | $title = Title::newFromText($localParser->transformMsg($sPar, $pOptions)); |
1457 | | - if( !is_null($title) ) $aCategories[] = $title->getDBKey(); |
| 1457 | + if( !is_null($title) ) $aCategories[] = $title->getDBkey(); |
1458 | 1458 | } |
1459 | 1459 | } |
1460 | 1460 | else { |
1461 | 1461 | $title = Title::newFromText($localParser->transformMsg($sParam, $pOptions)); |
1462 | | - if( !is_null($title) ) $aCategories[] = $title->getDBKey(); |
| 1462 | + if( !is_null($title) ) $aCategories[] = $title->getDBkey(); |
1463 | 1463 | } |
1464 | 1464 | } |
1465 | 1465 | } |
— | — | @@ -1491,7 +1491,7 @@ |
1492 | 1492 | case 'notcategory': |
1493 | 1493 | $title = Title::newFromText($localParser->transformMsg($sArg, $pOptions)); |
1494 | 1494 | if( !is_null($title) ) { |
1495 | | - $aExcludeCategories[] = $title->getDBKey(); |
| 1495 | + $aExcludeCategories[] = $title->getDBkey(); |
1496 | 1496 | $bConflictsWithOpenReferences=true; |
1497 | 1497 | } |
1498 | 1498 | break; |
— | — | @@ -2591,8 +2591,8 @@ |
2592 | 2592 | foreach ($aLinksTo as $link) { |
2593 | 2593 | if ($n>0) $sSqlCond_page_pl .= ' OR '; |
2594 | 2594 | $sSqlCond_page_pl .= '(pl.pl_namespace=' . intval( $link->getNamespace() ); |
2595 | | - if ($bIgnoreCase) $sSqlCond_page_pl .= " AND LOWER(pl.pl_title)=LOWER(" . $dbr->addQuotes( $link->getDBKey() ).'))'; |
2596 | | - else $sSqlCond_page_pl .= " AND pl.pl_title=" . $dbr->addQuotes( $link->getDBKey() ).')'; |
| 2595 | + if ($bIgnoreCase) $sSqlCond_page_pl .= " AND LOWER(pl.pl_title)=LOWER(" . $dbr->addQuotes( $link->getDBkey() ).'))'; |
| 2596 | + else $sSqlCond_page_pl .= " AND pl.pl_title=" . $dbr->addQuotes( $link->getDBkey() ).')'; |
2597 | 2597 | $n++; |
2598 | 2598 | } |
2599 | 2599 | $sSqlCond_page_pl .= ')'; |
— | — | @@ -2605,8 +2605,8 @@ |
2606 | 2606 | foreach ($aNotLinksTo as $link) { |
2607 | 2607 | if ($n>0) $sSqlCond_page_pl .= ' OR '; |
2608 | 2608 | $sSqlCond_page_pl .= '('.$sPageLinksTable.'.pl_namespace=' . intval($link->getNamespace()); |
2609 | | - if ($bIgnoreCase) $sSqlCond_page_pl .= ' AND LOWER('.$sPageLinksTable.'.pl_title)=LOWER(' . $dbr->addQuotes( $link->getDBKey() ).'))'; |
2610 | | - else $sSqlCond_page_pl .= ' AND '.$sPageLinksTable.'.pl_title=' . $dbr->addQuotes( $link->getDBKey() ).')'; |
| 2609 | + if ($bIgnoreCase) $sSqlCond_page_pl .= ' AND LOWER('.$sPageLinksTable.'.pl_title)=LOWER(' . $dbr->addQuotes( $link->getDBkey() ).'))'; |
| 2610 | + else $sSqlCond_page_pl .= ' AND '.$sPageLinksTable.'.pl_title=' . $dbr->addQuotes( $link->getDBkey() ).')'; |
2611 | 2611 | $n++; |
2612 | 2612 | } |
2613 | 2613 | $sSqlCond_page_pl .= ') )'; |
— | — | @@ -2671,8 +2671,8 @@ |
2672 | 2672 | $n=0; |
2673 | 2673 | foreach ($aImageUsed as $link) { |
2674 | 2674 | if ($n>0) $sSqlCond_page_pl .= ' OR '; |
2675 | | - if ($bIgnoreCase) $sSqlCond_page_pl .= "LOWER(il.il_to)=LOWER(" . $dbr->addQuotes( $link->getDBKey() ).')'; |
2676 | | - else $sSqlCond_page_pl .= "il.il_to=" . $dbr->addQuotes( $link->getDBKey() ); |
| 2675 | + if ($bIgnoreCase) $sSqlCond_page_pl .= "LOWER(il.il_to)=LOWER(" . $dbr->addQuotes( $link->getDBkey() ).')'; |
| 2676 | + else $sSqlCond_page_pl .= "il.il_to=" . $dbr->addQuotes( $link->getDBkey() ); |
2677 | 2677 | $n++; |
2678 | 2678 | } |
2679 | 2679 | $sSqlCond_page_pl .= ')'; |
— | — | @@ -2705,8 +2705,8 @@ |
2706 | 2706 | foreach ($aUses as $link) { |
2707 | 2707 | if ($n>0) $sSqlCond_page_pl .= ' OR '; |
2708 | 2708 | $sSqlCond_page_pl .= '(tl.tl_namespace=' . intval( $link->getNamespace() ); |
2709 | | - if ($bIgnoreCase) $sSqlCond_page_pl .= " AND LOWER(tl.tl_title)=LOWER(" . $dbr->addQuotes( $link->getDBKey() ).'))'; |
2710 | | - else $sSqlCond_page_pl .= " AND tl.tl_title=" . $dbr->addQuotes( $link->getDBKey() ).')'; |
| 2709 | + if ($bIgnoreCase) $sSqlCond_page_pl .= " AND LOWER(tl.tl_title)=LOWER(" . $dbr->addQuotes( $link->getDBkey() ).'))'; |
| 2710 | + else $sSqlCond_page_pl .= " AND tl.tl_title=" . $dbr->addQuotes( $link->getDBkey() ).')'; |
2711 | 2711 | $n++; |
2712 | 2712 | } |
2713 | 2713 | $sSqlCond_page_pl .= ')'; |
— | — | @@ -2719,8 +2719,8 @@ |
2720 | 2720 | foreach ($aNotUses as $link) { |
2721 | 2721 | if ($n>0) $sSqlCond_page_pl .= ' OR '; |
2722 | 2722 | $sSqlCond_page_pl .= '('.$sTemplateLinksTable.'.tl_namespace=' . intval($link->getNamespace()); |
2723 | | - if ($bIgnoreCase) $sSqlCond_page_pl .= ' AND LOWER('.$sTemplateLinksTable.'.tl_title)=LOWER(' . $dbr->addQuotes( $link->getDBKey() ).'))'; |
2724 | | - else $sSqlCond_page_pl .= ' AND '.$sTemplateLinksTable.'.tl_title=' . $dbr->addQuotes( $link->getDBKey() ).')'; |
| 2723 | + if ($bIgnoreCase) $sSqlCond_page_pl .= ' AND LOWER('.$sTemplateLinksTable.'.tl_title)=LOWER(' . $dbr->addQuotes( $link->getDBkey() ).'))'; |
| 2724 | + else $sSqlCond_page_pl .= ' AND '.$sTemplateLinksTable.'.tl_title=' . $dbr->addQuotes( $link->getDBkey() ).')'; |
2725 | 2725 | $n++; |
2726 | 2726 | } |
2727 | 2727 | $sSqlCond_page_pl .= ') )'; |
Index: trunk/extensions/OpenSearchXml/ApiOpenSearchXml.php |
— | — | @@ -243,7 +243,7 @@ |
244 | 244 | // Others will take Image:Foo.jpg or Foo.jpg |
245 | 245 | $title = Title::newFromText( $arg, NS_IMAGE ); |
246 | 246 | if( $title && $title->getNamespace() == NS_IMAGE ) { |
247 | | - return $title->getDBKey(); |
| 247 | + return $title->getDBkey(); |
248 | 248 | } |
249 | 249 | return false; |
250 | 250 | } |
Index: trunk/extensions/EmergencyDeSysop/EmergencyDeSysop.php |
— | — | @@ -39,7 +39,7 @@ |
40 | 40 | $text = wfMsg('emergencydesysop'); |
41 | 41 | |
42 | 42 | $title = Title::newFromText($text); |
43 | | - $specialPageArray['emergencydesysop']['emergencydesysop'] = $title->getDBKey(); |
| 43 | + $specialPageArray['emergencydesysop']['emergencydesysop'] = $title->getDBkey(); |
44 | 44 | return true; |
45 | 45 | } |
46 | 46 | |
Index: trunk/extensions/DPLforum/DPLforum_body.php |
— | — | @@ -281,13 +281,13 @@ |
282 | 282 | for ( $i = 0; $i < $cats; $i++ ) { |
283 | 283 | $sSqlSelectFrom .= " INNER JOIN $categorylinks AS" . |
284 | 284 | " c{$n} ON page_id = c{$n}.cl_from AND c{$n}.cl_to=" . |
285 | | - $dbr->addQuotes( $aCategories[$i]->getDBKey() ); |
| 285 | + $dbr->addQuotes( $aCategories[$i]->getDBkey() ); |
286 | 286 | $n++; |
287 | 287 | } |
288 | 288 | for ( $i = 0; $i < $nocats; $i++ ) { |
289 | 289 | $sSqlSelectFrom .= " LEFT OUTER JOIN $categorylinks AS" . |
290 | 290 | " c{$n} ON page_id = c{$n}.cl_from AND c{$n}.cl_to=" . |
291 | | - $dbr->addQuotes( $aExcludeCategories[$i]->getDBKey() ); |
| 291 | + $dbr->addQuotes( $aExcludeCategories[$i]->getDBkey() ); |
292 | 292 | $sSqlWhere .= " AND c{$n}.cl_to IS NULL"; |
293 | 293 | $n++; |
294 | 294 | } |
Index: trunk/extensions/Translate/tag/PageTranslationHooks.php |
— | — | @@ -173,7 +173,7 @@ |
174 | 174 | |
175 | 175 | // Add links to other languages |
176 | 176 | $suffix = ( $code === 'en' ) ? '' : "/$code"; |
177 | | - $_title = Title::makeTitle( $title->getNamespace(), $title->getDBKey() . $suffix ); |
| 177 | + $_title = Title::makeTitle( $title->getNamespace(), $title->getDBkey() . $suffix ); |
178 | 178 | |
179 | 179 | // For some reason self-links are not done automatically |
180 | 180 | if ( $parser->getTitle()->getText() === $_title->getText() ) { |
Index: trunk/extensions/Translate/SpecialTranslations.php |
— | — | @@ -109,7 +109,7 @@ |
110 | 110 | $sk = $wgUser->getSkin(); |
111 | 111 | |
112 | 112 | $namespace = $title->getNamespace(); |
113 | | - $message = $title->getDBKey(); |
| 113 | + $message = $title->getDBkey(); |
114 | 114 | |
115 | 115 | $inMessageGroup = TranslateUtils::messageKeyToGroup( $title->getNamespace(), $title->getBaseText() ); |
116 | 116 | |
Index: trunk/extensions/Translate/SpecialMagic.php |
— | — | @@ -633,7 +633,7 @@ |
634 | 634 | continue; |
635 | 635 | } else { |
636 | 636 | $text = $title->getText(); |
637 | | - $dbkey = $title->getDBKey(); |
| 637 | + $dbkey = $title->getDBkey(); |
638 | 638 | if( $text !== $_ && $dbkey !== $_ ) { |
639 | 639 | $errors[] = "$_ is not in normalised form, which is $text or $dbkey"; |
640 | 640 | } |
Index: trunk/extensions/CheckUser/CheckUser_body.php |
— | — | @@ -1085,7 +1085,7 @@ |
1086 | 1086 | array( 'log_type' => array('block','suppress'), |
1087 | 1087 | 'log_action' => 'block', |
1088 | 1088 | 'log_namespace' => $userpage->getNamespace(), |
1089 | | - 'log_title' => $userpage->getDBKey() ), |
| 1089 | + 'log_title' => $userpage->getDBkey() ), |
1090 | 1090 | __METHOD__, |
1091 | 1091 | array( 'USE INDEX' => 'page_time' ) ); |
1092 | 1092 | } |