*/
class Addon extends BaseObject
{
+ /**
+ * The addon sub-directory
+ * @var string
+ */
+ const DIRECTORY = '/addon/';
+
/**
* List of the names of enabled addons
*
namespace Friendica\Core\Config;
+use Friendica\Core\Addon;
+
/**
* The ConfigCacheLoader loads config-files and stores them in a ConfigCache ( @see ConfigCache )
*
* @var string
*/
const SUBDIRECTORY = '/config/';
- /**
- * The addon sub-directory
- * @var string
- */
- const ADDONDIRECTORY = '/addon/';
private $baseDir;
private $configDir;
public function loadConfigFile($filename, $addon = false)
{
if ($addon) {
- $filepath = $this->baseDir . self::ADDONDIRECTORY . $filename . self::SUBDIRECTORY . $filename . ".config.php";
+ $filepath = $this->baseDir . Addon::DIRECTORY . $filename . self::SUBDIRECTORY . $filename . ".config.php";
} else {
$filepath = $this->configDir . $filename . ".config.php";
}