From b89151dbd13029255e52c97363c7e5b6ae7e127b Mon Sep 17 00:00:00 2001 From: Christoph Burschka Date: Thu, 16 Jan 2014 18:19:28 +0100 Subject: Use STDERR in main.php --- main.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/main.php b/main.php index 5d6c9dd..f9c5b83 100755 --- a/main.php +++ b/main.php @@ -9,7 +9,6 @@ main(); function main() { require_once ROOT . 'config.php'; - $err = fopen('php://stderr', 'w'); if (!empty($config['plugin']) && !empty($config[$config['plugin']])) { $plugin_file = 'plugins/' . $config['plugin'] . '/' . $config['plugin'] . '.module'; if (file_exists(ROOT . $plugin_file)) { @@ -19,10 +18,10 @@ function main() { $auth->run(); } else { - fwrite($err, "Plugin <{$plugin_file}> not found.\n"); + fwrite(STDERR, "Plugin <{$plugin_file}> not found.\n"); } } else { - fwrite($err, 'Incomplete configuration: $config[\'plugin\'] must be set to , and $config[] populated.' . "\n"); + fwrite(STDERR, 'Incomplete configuration: $config[\'plugin\'] must be set to , and $config[] populated.' . "\n"); } -} \ No newline at end of file +} -- cgit v1.1