From 667dbdf4a31b7211301f70388d97029799ec3830 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 2 Oct 2004 02:43:27 +0000 Subject: [PATCH] * Remove deprecated wfLocalUrlE() call. * Avoid notice about missing field when no namespace in result set --- includes/SpecialAsksql.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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"; -- 2.20.1