toYaml()); $conf = Spyc::YAMLLoad($savedConfig); } $PlanetConfig = new PlanetConfig($conf); $Planet = new Planet($PlanetConfig); if ($conf['debug']) { error_reporting(E_ALL); } } $l10n = new Simplel10n($conf['locale']); // this is an helper function. We will usually use that function and not Simplel10n::getString() function _g($str, $comment='') { return Simplel10n::getString($str); } function custom_path($file = '') { return __DIR__.'/../custom' . (!empty($file) ? '/'.$file : ''); } function is_installed() { return file_exists(custom_path('config.yml')) && file_exists(custom_path('people.opml')); }