Index: trunk/lucene-search-2/src/org/wikimedia/lsearch/util/PHPParser.java |
— | — | @@ -170,13 +170,13 @@ |
171 | 171 | return langs; |
172 | 172 | } |
173 | 173 | |
174 | | - /** Get wgServer from InitialiseSettings */ |
| 174 | + /** Get wgCanonicalServer from InitialiseSettings */ |
175 | 175 | public Hashtable<String,String> getServer(String text){ |
176 | 176 | text = text.replaceAll("(#.*)",""); // strip comments |
177 | 177 | Hashtable<String,String> servers = new Hashtable<String,String>(); |
178 | 178 | |
179 | 179 | int flags = Pattern.CASE_INSENSITIVE | Pattern.DOTALL; |
180 | | - Pattern wgserv = Pattern.compile("[\"']wgServer[\"']\\s*=>\\s*array\\s*\\((.*?)\\)",flags); |
| 180 | + Pattern wgserv = Pattern.compile("[\"']wgCanonicalServer[\"']\\s*=>\\s*array\\s*\\((.*?)\\)",flags); |
181 | 181 | Pattern entry = Pattern.compile("[\"'](.*?)[\"']\\s*=>\\s*[\"'](.*?)[\"']",flags); |
182 | 182 | Matcher matcher = wgserv.matcher(text); |
183 | 183 | while(matcher.find()){ |