summaryrefslogtreecommitdiff
path: root/lib/statusnet.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-12 23:56:21 -0800
committerEvan Prodromou <evan@status.net>2010-01-12 23:56:21 -0800
commitcc25d3baf0d503f469f9621c53513370453ad8ee (patch)
treefaf0e04fd4a45c2812b15b724b6bfeccf0d63496 /lib/statusnet.php
parente34ece8b0630394b606b57b19de58c830fad9c4d (diff)
ws changes for phpcs
Diffstat (limited to 'lib/statusnet.php')
-rw-r--r--lib/statusnet.php23
1 files changed, 13 insertions, 10 deletions
diff --git a/lib/statusnet.php b/lib/statusnet.php
index 0c5807d7b..29e903026 100644
--- a/lib/statusnet.php
+++ b/lib/statusnet.php
@@ -1,7 +1,7 @@
<?php
-/*
+/**
* StatusNet - the distributed open-source microblogging tool
- * Copyright (C) 2009, StatusNet, Inc.
+ * Copyright (C) 2009-2010 StatusNet, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
@@ -15,9 +15,12 @@
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
*/
-if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); }
+if (!defined('STATUSNET') && !defined('LACONICA')) {
+ exit(1);
+}
global $config, $_server, $_path;
@@ -227,19 +230,19 @@ class StatusNet
protected function loadConfigFile($conffile=null)
{
global $_server, $_path, $config;
-
+
// From most general to most specific:
// server-wide, then vhost-wide, then for a path,
// finally for a dir (usually only need one of the last two).
-
+
if (isset($conffile)) {
$config_files = array($conffile);
} else {
$config_files = array('/etc/statusnet/statusnet.php',
- '/etc/statusnet/laconica.php',
- '/etc/laconica/laconica.php',
- '/etc/statusnet/'.$_server.'.php',
- '/etc/laconica/'.$_server.'.php');
+ '/etc/statusnet/laconica.php',
+ '/etc/laconica/laconica.php',
+ '/etc/statusnet/'.$_server.'.php',
+ '/etc/laconica/'.$_server.'.php');
if (strlen($_path) > 0) {
$config_files[] = '/etc/statusnet/'.$_server.'_'.$_path.'.php';
@@ -260,7 +263,7 @@ class StatusNet
if (!self::$have_config) {
throw new NoConfigException("No configuration file found.",
- $config_files);
+ $config_files);
}
// Fixup for statusnet.ini