Skip to content

Commit

Permalink
feedentry
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Lodder committed Mar 12, 2019
1 parent e92e9f0 commit 58758be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions build/build-modules-js/namespace.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const RootPath = require('./utils/rootpath.es6.js')._();


const jregex = /defined\('(JPATH_BASE|_JEXEC|JPATH_PLATFORM)'\) or die;/gm;
const oldClassName = 'JFeedParser';
const classUse = 'use Joomla\\CMS\\Feed\\FeedParser;';
const oldClassName = 'JFeedEntry';
const classUse = 'use Joomla\\CMS\\Feed\\FeedEntry;';
const newClassName = classUse.substr(classUse.lastIndexOf('\\') + 1).slice(0, -1);
const root = `${RootPath}/`;
const filesToIgnore = [
Expand Down Expand Up @@ -60,7 +60,7 @@ const readFile = (path) => {
};

const getInstances = (content, path) => {
const regex = /(?=\S)(?!\/\*\*)(?!\/\/)(?!\*)(\\?JFeedParser)/gm;
const regex = /(?=\S)(?!\/\*\*)(?!\/\/)(?!\*)(\\?JFeedEntry)/gm;
const matches = content.match(regex);

if (matches !== null) {
Expand Down
5 changes: 4 additions & 1 deletion libraries/src/Feed/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@
defined('JPATH_PLATFORM') or die;

use Joomla\CMS\Date\Date;
use Joomla\CMS\Feed\FeedEntry;
use Joomla\CMS\Feed\FeedPerson;



/**
* Class to encapsulate a feed for the Joomla Platform.
*
Expand Down Expand Up @@ -232,7 +235,7 @@ public function offsetGet($offset)
* Assigns a value to the specified offset.
*
* @param mixed $offset The offset to assign the value to.
* @param FeedEntry $value The JFeedEntry to set.
* @param FeedEntry $value The FeedEntry to set.
*
* @return boolean
*
Expand Down

0 comments on commit 58758be

Please sign in to comment.