(bug 12608) Unifying the spelling of getDBkey() in the extension code.

This commit is contained in:
Siebrand Mazeland 2008-01-14 10:09:08 +00:00
parent 3410872e20
commit 52b4245dcf

View file

@ -148,7 +148,7 @@ class CategoryTree {
$load = 'ct-' . $uniq . '-' . mt_rand( 1, 100000 ); $load = 'ct-' . $uniq . '-' . mt_rand( 1, 100000 );
$html .= wfOpenElement( 'script', array( 'type' => 'text/javascript', 'id' => $load ) ); $html .= wfOpenElement( 'script', array( 'type' => 'text/javascript', 'id' => $load ) );
$html .= 'categoryTreeLoadChildren("' . Xml::escapeJsString( $title->getDBKey() ) . '", "' . $mode . '", document.getElementById("' . $load . '").parentNode );'; $html .= 'categoryTreeLoadChildren("' . Xml::escapeJsString( $title->getDBkey() ) . '", "' . $mode . '", document.getElementById("' . $load . '").parentNode );';
$html .= wfCloseElement( 'script' ); $html .= wfCloseElement( 'script' );
} }
} }
@ -193,7 +193,7 @@ class CategoryTree {
FROM $page as cat FROM $page as cat
JOIN $categorylinks ON cl_from = cat.page_id JOIN $categorylinks ON cl_from = cat.page_id
$transJoin $transJoin
WHERE cl_to = " . $dbr->addQuotes( $title->getDBKey() ) . " WHERE cl_to = " . $dbr->addQuotes( $title->getDBkey() ) . "
$nsmatch $nsmatch
"./*AND cat.page_is_redirect = 0*/" "./*AND cat.page_is_redirect = 0*/"
$transWhere $transWhere
@ -297,7 +297,7 @@ class CategoryTree {
} }
$ns = $title->getNamespace(); $ns = $title->getNamespace();
$key = $title->getDBKey(); $key = $title->getDBkey();
#$trans = $title->getLocalizedText(); #$trans = $title->getLocalizedText();
$trans = ''; #place holder for when translated titles are available $trans = ''; #place holder for when translated titles are available