Skip to content
This repository has been archived by the owner on Jul 15, 2020. It is now read-only.

Commit

Permalink
bugfix update addon, no new classes found
Browse files Browse the repository at this point in the history
  • Loading branch information
Sysix committed Mar 20, 2015
1 parent c39cf19 commit a362b30
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion classes/rex_asd_news_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ public static function addSaveConfigs(array $list)
*/
public static function saveConfig()
{
$config = array_merge(self::$defaultConfig, self::$config, self::$saveConfig);
$config = array_merge(
(array)self::$defaultConfig,
(array)self::$config,
(array)self::$saveConfig
);

self::$config = $config;

Expand Down
5 changes: 3 additions & 2 deletions update.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

global $REX;

include_once rex_path::addon('asd_news', 'classes/rex_asd_news_config.php');
include_once __DIR__ . '/classes/rex_asd_news_config.php';

rex_asd_news_config::init(
'asd_news',
'asd_news', // Without Prefix
Expand Down Expand Up @@ -38,7 +39,7 @@

if (OOAddon::isAvailable('metainfo') && $metaCols) {

include_once rex_path::addon(rex_asd_news_config::getName(), 'classes/metainfo/rex_asd_metainfo_install.php');
include_once __DIR__ . '/classes/metainfo/rex_asd_metainfo_install.php';

rex_asd_metainfo_install::setProperty();
if ($error = rex_asd_metainfo_install::addFields()) {
Expand Down

0 comments on commit a362b30

Please sign in to comment.