/** * Check if mod_rewrite is available * * @return bool true if available */ public function isModRewriteEnabled() { if (!App::instance()->isConsole() && !parent::isModRewriteEnabled()) { $app = App::instance(); $app::instance()->setNotification('W', $app->t('warning'), $app->t('mod_rewrite_not_configured'), true, 'server_configuration'); } return true; }