Skip to content

Commit

Permalink
Merge branch '4.0-dev' into feature/todos
Browse files Browse the repository at this point in the history
  • Loading branch information
infograf768 committed Dec 7, 2018
2 parents dedea31 + 05cc576 commit 436a132
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions libraries/src/Document/FeedDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

use Joomla\CMS\Document\Feed\FeedImage;
use Joomla\CMS\Document\Feed\FeedItem;
use Joomla\CMS\Factory;
use Joomla\CMS\Factory as CmsFactory;
use Joomla\CMS\Language\Text;

/**
Expand Down Expand Up @@ -181,8 +181,8 @@ public function __construct($options = array())
$this->_type = 'feed';

// Gets and sets timezone offset from site configuration
$this->lastBuildDate = Factory::getDate();
$this->lastBuildDate->setTimeZone(new \DateTimeZone(Factory::getApplication()->get('offset', 'UTC')));
$this->lastBuildDate = CmsFactory::getDate();
$this->lastBuildDate->setTimeZone(new \DateTimeZone(CmsFactory::getApplication()->get('offset', 'UTC')));
}

/**
Expand All @@ -200,7 +200,7 @@ public function __construct($options = array())
public function render($cache = false, $params = array())
{
// Get the feed type
$type = Factory::getApplication()->input->get('type', 'rss');
$type = CmsFactory::getApplication()->input->get('type', 'rss');

// Instantiate feed renderer and set the mime encoding
$renderer = $this->loadRenderer(($type) ? $type : 'rss');
Expand Down
4 changes: 2 additions & 2 deletions libraries/src/Document/JsonDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

defined('JPATH_PLATFORM') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\Factory as CmsFactory;

/**
* JsonDocument class, provides an easy interface to parse and display JSON output
Expand Down Expand Up @@ -68,7 +68,7 @@ public function __construct($options = array())
*/
public function render($cache = false, $params = array())
{
$app = Factory::getApplication();
$app = CmsFactory::getApplication();

$app->allowCache(false);

Expand Down
4 changes: 2 additions & 2 deletions libraries/src/Document/XmlDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

defined('JPATH_PLATFORM') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\Factory as CmsFactory;

/**
* XmlDocument class, provides an easy interface to parse and display XML output
Expand Down Expand Up @@ -59,7 +59,7 @@ public function render($cache = false, $params = array())
{
parent::render();

Factory::getApplication()->setHeader('Content-disposition', 'inline; filename="' . $this->getName() . '.xml"', true);
CmsFactory::getApplication()->setHeader('Content-disposition', 'inline; filename="' . $this->getName() . '.xml"', true);

return $this->getBuffer();
}
Expand Down

0 comments on commit 436a132

Please sign in to comment.