Merge pull request #349 from JasonGhent/master

Stackoverflow parsing and subdomain failover fix.
This commit is contained in:
Nicolas Lœuillet 2013-12-02 23:14:49 -08:00
commit 13991e5288
3 changed files with 10 additions and 2 deletions

View File

@ -114,7 +114,7 @@ class SiteConfig
$split = explode('.', $host);
if (count($split) > 1) {
array_shift($split);
$try[] = '.'.implode('.', $split);
$try[] = implode('.', $split);
}
foreach ($try as $h) {
if (array_key_exists($h, self::$config_cache)) {

View File

@ -0,0 +1,4 @@
title: //title
body: //div[@id='question']//div[contains(@class,'post-text')] | //div[@id='answers-header']//h2 | //div[contains(@class,'accepted-answer')]//div[contains(@class,'post-text')]
test_url: http://cstheory.stackexchange.com/questions/14811/what-is-the-enlightenment-im-supposed-to-attain-after-studying-finite-automata/14818#14818

View File

@ -0,0 +1,4 @@
title: //title
body: //div[@id='question']//div[contains(@class,'post-text')] | //div[@id='answers-header']//h2 | //div[contains(@class,'accepted-answer')]//div[contains(@class,'post-text')]
test_url: http://stackoverflow.com/questions/20302422/calling-a-function-from-a-javascript-object