Exception catch
This commit is contained in:
parent
3f7377b83e
commit
d482f31634
16
english.php
16
english.php
|
@ -16,16 +16,18 @@ $loader->addPrefix('Source', 'Source_en');
|
|||
|
||||
if (PHP_SAPI !== 'cli') {
|
||||
ob_start();
|
||||
echo '<!DOCTYPE html><html><body><pre>';
|
||||
echo '<!DOCTYPE html><html><body><code><pre>';
|
||||
}
|
||||
|
||||
(new Source\Textadventures())->print();
|
||||
(new Source\IFDB())->print();
|
||||
(new Source\Dashingdon())->print();
|
||||
(new Source\Itch())->print();
|
||||
(new Source\Hyperbook())->print();
|
||||
try {
|
||||
(new Source\Textadventures())->print();
|
||||
(new Source\IFDB())->print();
|
||||
(new Source\Dashingdon())->print();
|
||||
(new Source\Itch())->print();
|
||||
(new Source\Hyperbook())->print();
|
||||
} catch (Exception $e) {}
|
||||
|
||||
if (PHP_SAPI !== 'cli') {
|
||||
echo '</pre></body></html>';
|
||||
echo '</pre></code></body></html>';
|
||||
ob_end_flush();
|
||||
}
|
||||
|
|
22
russian.php
22
russian.php
|
@ -7,19 +7,21 @@ $loader->addPrefix('Source', 'Source');
|
|||
|
||||
if (PHP_SAPI !== 'cli') {
|
||||
ob_start();
|
||||
echo '<!DOCTYPE html><html><body><pre>';
|
||||
echo '<!DOCTYPE html><html><body><code><pre>';
|
||||
}
|
||||
|
||||
(new Source\Urq())->print();
|
||||
(new Source\Qsp())->print();
|
||||
(new Source\Kvester())->print();
|
||||
(new Source\Apero())->print();
|
||||
(new Source\Instead())->print();
|
||||
(new Source\Storymaze())->print();
|
||||
(new Source\Hyperbook())->print();
|
||||
(new Source\Questbook())->print();
|
||||
try {
|
||||
(new Source\Urq())->print();
|
||||
(new Source\Qsp())->print();
|
||||
(new Source\Kvester())->print();
|
||||
(new Source\Apero())->print();
|
||||
(new Source\Instead())->print();
|
||||
(new Source\Storymaze())->print();
|
||||
(new Source\Hyperbook())->print();
|
||||
(new Source\Questbook())->print();
|
||||
} catch (Exception $e) {}
|
||||
|
||||
if (PHP_SAPI !== 'cli') {
|
||||
echo '</pre></body></html>';
|
||||
echo '</pre></code></body></html>';
|
||||
ob_end_flush();
|
||||
}
|
||||
|
|
Reference in a new issue