Skip to content

Commit

Permalink
Remove unused variables, consistently use globals.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed May 10, 2017
1 parent 37824f8 commit c635318
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kronolith/lib/Block/Prevmonthlist.php
Expand Up @@ -60,9 +60,9 @@ protected function _title()
*/
protected function _content()
{
global $page_output, $registry, $prefs;
global $calendar_manager, $from_block, $page_output;

$GLOBALS['from_block'] = true;
$from_block = true;

$page_output->addScriptFile('tooltips.js', 'horde');

Expand Down Expand Up @@ -97,7 +97,7 @@ protected function _content()
$all_events = Kronolith::listEvents(
$startDate,
$endDate,
$GLOBALS['calendar_manager']->get(Kronolith::DISPLAY_CALENDARS)
$calendar_manager->get(Kronolith::DISPLAY_CALENDARS)
);
}
} catch (Exception $e) {
Expand Down

0 comments on commit c635318

Please sign in to comment.