instead теперь официальный
This commit is contained in:
parent
f353682a8b
commit
6c219330ef
|
@ -4,7 +4,7 @@ namespace Source;
|
||||||
use \Game;
|
use \Game;
|
||||||
|
|
||||||
class Instead extends Source {
|
class Instead extends Source {
|
||||||
public $title = "Неофициальный INSTEAD репозиторий";
|
public $title = "INSTEAD репозиторий";
|
||||||
protected function insteadfeed($url) {
|
protected function insteadfeed($url) {
|
||||||
$text = $this->get_text($url);
|
$text = $this->get_text($url);
|
||||||
$this->dom->loadStr($text, []);
|
$this->dom->loadStr($text, []);
|
||||||
|
@ -24,7 +24,11 @@ class Instead extends Source {
|
||||||
}
|
}
|
||||||
protected function parse() {
|
protected function parse() {
|
||||||
$this->insteadfeed("http://instead-games.ru/");
|
$this->insteadfeed("http://instead-games.ru/");
|
||||||
$this->output .= "##### Песочница\n";
|
if (FORMAT === 'HTML') {
|
||||||
|
$this->output .= "<h5>Песочница</h5>\n";
|
||||||
|
} elseif (FORMAT === 'MARKDOWN') {
|
||||||
|
$this->output .= "##### Песочница\n";
|
||||||
|
}
|
||||||
$this->insteadfeed("http://instead-games.ru/index.php?approved=0");
|
$this->insteadfeed("http://instead-games.ru/index.php?approved=0");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue