Index: trunk/phase3/includes/SpecialLog.php |
— | — | @@ -131,10 +131,10 @@ |
132 | 132 | $ns = $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 | |