}
protected function appendGeneralInfo( $property ) {
- global $wgContLang, $wgLang;
+ global $wgContLang;
$data = array();
$mainPage = Title::newMainPage();
if ( $wgContLang->isRTL() ) {
$data['rtl'] = '';
}
- $data['fallback8bitEncoding'] = $wgLang->fallback8bitEncoding();
+ $data['fallback8bitEncoding'] = $wgContLang->fallback8bitEncoding();
if ( wfReadOnly() ) {
$data['readonly'] = '';
}
protected function appendSpecialPageAliases( $property ) {
- global $wgLang;
+ global $wgContLang;
$data = array();
- foreach ( $wgLang->getSpecialPageAliases() as $specialpage => $aliases )
+ foreach ( $wgContLang->getSpecialPageAliases() as $specialpage => $aliases )
{
$arr = array( 'realname' => $specialpage, 'aliases' => $aliases );
$this->getResult()->setIndexedTagName( $arr['aliases'], 'alias' );
}
private function insertOneRow( $table, $row, $fname ) {
- global $wgLang;
+ global $wgContLang;
$table = $this->tableName( $table );
// "INSERT INTO tables (a, b, c)"
$val = '31-12-2030 12:00:00.000000';
}
- $val = ( $wgLang != null ) ? $wgLang->checkTitleEncoding( $val ) : $val;
+ $val = ( $wgContLang != null ) ? $wgContLang->checkTitleEncoding( $val ) : $val;
if ( oci_bind_by_name( $stmt, ":$col", $val ) === false ) {
$this->reportQueryError( $this->lastErrno(), $this->lastError(), $sql, __METHOD__ );
return false;
}
function addQuotes( $s ) {
- global $wgLang;
- if ( isset( $wgLang->mLoaded ) && $wgLang->mLoaded ) {
- $s = $wgLang->checkTitleEncoding( $s );
+ global $wgContLang;
+ if ( isset( $wgContLang->mLoaded ) && $wgContLang->mLoaded ) {
+ $s = $wgContLang->checkTitleEncoding( $s );
}
return "'" . $this->strencode( $s ) . "'";
}
}
function selectRow( $table, $vars, $conds, $fname = 'DatabaseOracle::selectRow', $options = array(), $join_conds = array() ) {
- global $wgLang;
+ global $wgContLang;
$conds2 = array();
$conds = ($conds != null && !is_array($conds)) ? array($conds) : $conds;
$col_info = $this->fieldInfoMulti( $table, $col );
$col_type = $col_info != false ? $col_info->type() : 'CONSTANT';
if ( $col_type == 'CLOB' ) {
- $conds2['TO_CHAR(' . $col . ')'] = $wgLang->checkTitleEncoding( $val );
+ $conds2['TO_CHAR(' . $col . ')'] = $wgContLang->checkTitleEncoding( $val );
} elseif ( $col_type == 'VARCHAR2' && !mb_check_encoding( $val ) ) {
- $conds2[$col] = $wgLang->checkTitleEncoding( $val );
+ $conds2[$col] = $wgContLang->checkTitleEncoding( $val );
} else {
$conds2[$col] = $val;
}
}
public function delete( $table, $conds, $fname = 'DatabaseOracle::delete' ) {
- global $wgLang;
+ global $wgContLang;
- if ( $wgLang != null ) {
+ if ( $wgContLang != null ) {
$conds2 = array();
$conds = ($conds != null && !is_array($conds)) ? array($conds) : $conds;
foreach ( $conds as $col => $val ) {
$col_info = $this->fieldInfoMulti( $table, $col );
$col_type = $col_info != false ? $col_info->type() : 'CONSTANT';
if ( $col_type == 'CLOB' ) {
- $conds2['TO_CHAR(' . $col . ')'] = $wgLang->checkTitleEncoding( $val );
+ $conds2['TO_CHAR(' . $col . ')'] = $wgContLang->checkTitleEncoding( $val );
} else {
if ( is_array( $val ) ) {
$conds2[$col] = $val;
foreach ( $conds2[$col] as &$val2 ) {
- $val2 = $wgLang->checkTitleEncoding( $val2 );
+ $val2 = $wgContLang->checkTitleEncoding( $val2 );
}
} else {
- $conds2[$col] = $wgLang->checkTitleEncoding( $val );
+ $conds2[$col] = $wgContLang->checkTitleEncoding( $val );
}
}
}