Skip to content

Commit

Permalink
rename last-modified into lastModified for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
tontof committed May 2, 2013
1 parent 635305f commit 091eb48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/class/Feed.php
Expand Up @@ -1256,7 +1256,7 @@ public function addChannel($xmlUrl)
{
$feedHash = MyTool::smallHash($xmlUrl);
if (!isset($this->_data['feeds'][$feedHash])) {
$xml = $this->loadXml($xmlUrl, $this->_data['feeds'][$feedHash]['etag'], $this->_data['feeds'][$feedHash]['last-modified']);
$xml = $this->loadXml($xmlUrl, $this->_data['feeds'][$feedHash]['etag'], $this->_data['feeds'][$feedHash]['lastModified']);

if (!$xml) {
return false;
Expand Down Expand Up @@ -1366,7 +1366,7 @@ public function updateChannel($feedHash)

unset($this->_data['feeds'][$feedHash]['error']);
$xmlUrl = $this->_data['feeds'][$feedHash]['xmlUrl'];
$xml = $this->loadXml($xmlUrl, $this->_data['feeds'][$feedHash]['etag'], $this->_data['feeds'][$feedHash]['last-modified']);
$xml = $this->loadXml($xmlUrl, $this->_data['feeds'][$feedHash]['etag'], $this->_data['feeds'][$feedHash]['lastModified']);

if (!$xml) {
if (file_exists($this->cacheDir.'/'.$feedHash.'.php')) {
Expand Down
4 changes: 2 additions & 2 deletions src/index.php
Expand Up @@ -6434,7 +6434,7 @@ public function addChannel($xmlUrl)
{
$feedHash = MyTool::smallHash($xmlUrl);
if (!isset($this->_data['feeds'][$feedHash])) {
$xml = $this->loadXml($xmlUrl, $this->_data['feeds'][$feedHash]['etag'], $this->_data['feeds'][$feedHash]['last-modified']);
$xml = $this->loadXml($xmlUrl, $this->_data['feeds'][$feedHash]['etag'], $this->_data['feeds'][$feedHash]['lastModified']);

if (!$xml) {
return false;
Expand Down Expand Up @@ -6522,7 +6522,7 @@ public function updateChannel($feedHash)

unset($this->_data['feeds'][$feedHash]['error']);
$xmlUrl = $this->_data['feeds'][$feedHash]['xmlUrl'];
$xml = $this->loadXml($xmlUrl, $this->_data['feeds'][$feedHash]['etag'], $this->_data['feeds'][$feedHash]['last-modified']);
$xml = $this->loadXml($xmlUrl, $this->_data['feeds'][$feedHash]['etag'], $this->_data['feeds'][$feedHash]['lastModified']);

if (!$xml) {
if (file_exists($this->cacheDir.'/'.$feedHash.'.php')) {
Expand Down

0 comments on commit 091eb48

Please sign in to comment.