Archived
1
0
Fork 0

instead теперь официальный

This commit is contained in:
Alexander Yakovlev 2018-03-17 13:36:40 +07:00
parent f353682a8b
commit 6c219330ef

View file

@ -4,7 +4,7 @@ namespace Source;
use \Game;
class Instead extends Source {
public $title = "Неофициальный INSTEAD репозиторий";
public $title = "INSTEAD репозиторий";
protected function insteadfeed($url) {
$text = $this->get_text($url);
$this->dom->loadStr($text, []);
@ -24,7 +24,11 @@ class Instead extends Source {
}
protected function parse() {
$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");
}
}