Skip to content

Commit

Permalink
Bug: 13951 Allow background to be provided by the listTimeObjects API.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Apr 15, 2015
1 parent 9d7d39e commit 7e3dc75
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions kronolith/lib/CalendarsManager.php
Expand Up @@ -483,13 +483,21 @@ protected function _getAllExternal()
}

foreach ($categories as $name => $description) {
$this->_allExternal[$api . '/' . $name] = new Kronolith_Calendar_External(array('api' => $api, 'name' => $description['title'], 'id' => $name, 'type' => $description['type']));
if (empty($description['background'])) {
$description['background'] = '#dddddd';
}
$this->_allExternal[$api . '/' . $name] = new Kronolith_Calendar_External(array(
'api' => $api,
'name' => $description['title'],
'id' => $name,
'type' => $description['type'],
'background' => $description['background']));
$ext_cals[] = array(
'a' => $api,
'n' => $name,
'd' => $description['title'],
't' => $description['type'],
'b' => empty($description['background']) ? '#dddddd' : $description['background']
'b' => $description['background']
);
}
}
Expand Down

0 comments on commit 7e3dc75

Please sign in to comment.