Index: trunk/phase3/includes/SpecialLog.php |
— | — | @@ -128,13 +128,13 @@ |
129 | 129 | } |
130 | 130 | $this->title =& $title; |
131 | 131 | $this->pattern = $pattern; |
132 | | - $ns = $title->getNamespace(); |
| 132 | + $ns = intval( $title->getNamespace() ); |
133 | 133 | if ( $pattern && !$wgMiserMode ) { |
134 | 134 | $safetitle = $this->db->escapeLike( $title->getDBkey() ); // use escapeLike to avoid expensive search patterns like 't%st%' |
135 | | - $this->whereClauses[] = "log_namespace=".$ns." AND log_title LIKE '$safetitle%'"; |
| 135 | + $this->whereClauses[] = "log_namespace=$ns AND log_title LIKE '$safetitle%'"; |
136 | 136 | } else { |
137 | 137 | $safetitle = $this->db->strencode( $title->getDBkey() ); |
138 | | - $this->whereClauses[] = "log_namespace=".$ns." AND log_title = '$safetitle'"; |
| 138 | + $this->whereClauses[] = "log_namespace=$ns AND log_title = '$safetitle'"; |
139 | 139 | } |
140 | 140 | } |
141 | 141 | |