From: Brion Vibber Date: Sat, 2 Oct 2004 02:43:27 +0000 (+0000) Subject: * Remove deprecated wfLocalUrlE() call. X-Git-Tag: 1.5.0alpha1~1700 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=667dbdf4a31b7211301f70388d97029799ec3830;p=lhc%2Fweb%2Fwiklou.git * Remove deprecated wfLocalUrlE() call. * Avoid notice about missing field when no namespace in result set --- diff --git a/includes/SpecialAsksql.php b/includes/SpecialAsksql.php index 1876d81272..666030bf81 100644 --- a/includes/SpecialAsksql.php +++ b/includes/SpecialAsksql.php @@ -156,15 +156,15 @@ class SqlQueryForm { $o = $y->$x ; if ( $x == "cur_title" or $x == "old_title" or $x == "rc_title") { $namespace = 0; - if( $x == "cur_title" ) $namespace = $y->cur_namespace; - if( $x == "old_title" ) $namespace = $y->old_namespace; - if( $x == "rc_title" ) $namespace = $y->rc_namespace; - if( $namespace ) $o = $wgContLang->getNsText( $namespace ) . ":" . $o; - $o = "" . + if( $x == "cur_title" && isset( $y->cur_namespace ) ) $namespace = $y->cur_namespace; + if( $x == "old_title" && isset( $y->old_namespace ) ) $namespace = $y->old_namespace; + if( $x == "rc_title" && isset( $y->rc_namespace ) ) $namespace = $y->rc_namespace; + $title =& Title::makeTitle( $namespace, $o ); + $o = "escapeLocalUrl() . "\" class='internal'>" . htmlspecialchars( $y->$x ) . "" ; - } else { + } else { $o = htmlspecialchars( $o ); - } + } $r .= "" . $o . "\n"; } $r .= "\n";