Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../SimplePi...
File: Item.php
}
[1500] Fix | Delete
}
[1501] Fix | Delete
[1502] Fix | Delete
// RATINGS
[1503] Fix | Delete
if ($ratings = $this->get_item_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'rating'))
[1504] Fix | Delete
{
[1505] Fix | Delete
foreach ($ratings as $rating)
[1506] Fix | Delete
{
[1507] Fix | Delete
$rating_scheme = null;
[1508] Fix | Delete
$rating_value = null;
[1509] Fix | Delete
if (isset($rating['attribs']['']['scheme']))
[1510] Fix | Delete
{
[1511] Fix | Delete
$rating_scheme = $this->sanitize($rating['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT);
[1512] Fix | Delete
}
[1513] Fix | Delete
else
[1514] Fix | Delete
{
[1515] Fix | Delete
$rating_scheme = 'urn:simple';
[1516] Fix | Delete
}
[1517] Fix | Delete
if (isset($rating['data']))
[1518] Fix | Delete
{
[1519] Fix | Delete
$rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT);
[1520] Fix | Delete
}
[1521] Fix | Delete
$ratings_parent[] = $this->registry->create('Rating', array($rating_scheme, $rating_value));
[1522] Fix | Delete
}
[1523] Fix | Delete
}
[1524] Fix | Delete
elseif ($ratings = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'explicit'))
[1525] Fix | Delete
{
[1526] Fix | Delete
foreach ($ratings as $rating)
[1527] Fix | Delete
{
[1528] Fix | Delete
$rating_scheme = 'urn:itunes';
[1529] Fix | Delete
$rating_value = null;
[1530] Fix | Delete
if (isset($rating['data']))
[1531] Fix | Delete
{
[1532] Fix | Delete
$rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT);
[1533] Fix | Delete
}
[1534] Fix | Delete
$ratings_parent[] = $this->registry->create('Rating', array($rating_scheme, $rating_value));
[1535] Fix | Delete
}
[1536] Fix | Delete
}
[1537] Fix | Delete
elseif ($ratings = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'rating'))
[1538] Fix | Delete
{
[1539] Fix | Delete
foreach ($ratings as $rating)
[1540] Fix | Delete
{
[1541] Fix | Delete
$rating_scheme = null;
[1542] Fix | Delete
$rating_value = null;
[1543] Fix | Delete
if (isset($rating['attribs']['']['scheme']))
[1544] Fix | Delete
{
[1545] Fix | Delete
$rating_scheme = $this->sanitize($rating['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT);
[1546] Fix | Delete
}
[1547] Fix | Delete
else
[1548] Fix | Delete
{
[1549] Fix | Delete
$rating_scheme = 'urn:simple';
[1550] Fix | Delete
}
[1551] Fix | Delete
if (isset($rating['data']))
[1552] Fix | Delete
{
[1553] Fix | Delete
$rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT);
[1554] Fix | Delete
}
[1555] Fix | Delete
$ratings_parent[] = $this->registry->create('Rating', array($rating_scheme, $rating_value));
[1556] Fix | Delete
}
[1557] Fix | Delete
}
[1558] Fix | Delete
elseif ($ratings = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'explicit'))
[1559] Fix | Delete
{
[1560] Fix | Delete
foreach ($ratings as $rating)
[1561] Fix | Delete
{
[1562] Fix | Delete
$rating_scheme = 'urn:itunes';
[1563] Fix | Delete
$rating_value = null;
[1564] Fix | Delete
if (isset($rating['data']))
[1565] Fix | Delete
{
[1566] Fix | Delete
$rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT);
[1567] Fix | Delete
}
[1568] Fix | Delete
$ratings_parent[] = $this->registry->create('Rating', array($rating_scheme, $rating_value));
[1569] Fix | Delete
}
[1570] Fix | Delete
}
[1571] Fix | Delete
if (is_array($ratings_parent))
[1572] Fix | Delete
{
[1573] Fix | Delete
$ratings_parent = array_values(array_unique($ratings_parent));
[1574] Fix | Delete
}
[1575] Fix | Delete
[1576] Fix | Delete
// RESTRICTIONS
[1577] Fix | Delete
if ($restrictions = $this->get_item_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'restriction'))
[1578] Fix | Delete
{
[1579] Fix | Delete
foreach ($restrictions as $restriction)
[1580] Fix | Delete
{
[1581] Fix | Delete
$restriction_relationship = null;
[1582] Fix | Delete
$restriction_type = null;
[1583] Fix | Delete
$restriction_value = null;
[1584] Fix | Delete
if (isset($restriction['attribs']['']['relationship']))
[1585] Fix | Delete
{
[1586] Fix | Delete
$restriction_relationship = $this->sanitize($restriction['attribs']['']['relationship'], SIMPLEPIE_CONSTRUCT_TEXT);
[1587] Fix | Delete
}
[1588] Fix | Delete
if (isset($restriction['attribs']['']['type']))
[1589] Fix | Delete
{
[1590] Fix | Delete
$restriction_type = $this->sanitize($restriction['attribs']['']['type'], SIMPLEPIE_CONSTRUCT_TEXT);
[1591] Fix | Delete
}
[1592] Fix | Delete
if (isset($restriction['data']))
[1593] Fix | Delete
{
[1594] Fix | Delete
$restriction_value = $this->sanitize($restriction['data'], SIMPLEPIE_CONSTRUCT_TEXT);
[1595] Fix | Delete
}
[1596] Fix | Delete
$restrictions_parent[] = $this->registry->create('Restriction', array($restriction_relationship, $restriction_type, $restriction_value));
[1597] Fix | Delete
}
[1598] Fix | Delete
}
[1599] Fix | Delete
elseif ($restrictions = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'block'))
[1600] Fix | Delete
{
[1601] Fix | Delete
foreach ($restrictions as $restriction)
[1602] Fix | Delete
{
[1603] Fix | Delete
$restriction_relationship = 'allow';
[1604] Fix | Delete
$restriction_type = null;
[1605] Fix | Delete
$restriction_value = 'itunes';
[1606] Fix | Delete
if (isset($restriction['data']) && strtolower($restriction['data']) === 'yes')
[1607] Fix | Delete
{
[1608] Fix | Delete
$restriction_relationship = 'deny';
[1609] Fix | Delete
}
[1610] Fix | Delete
$restrictions_parent[] = $this->registry->create('Restriction', array($restriction_relationship, $restriction_type, $restriction_value));
[1611] Fix | Delete
}
[1612] Fix | Delete
}
[1613] Fix | Delete
elseif ($restrictions = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'restriction'))
[1614] Fix | Delete
{
[1615] Fix | Delete
foreach ($restrictions as $restriction)
[1616] Fix | Delete
{
[1617] Fix | Delete
$restriction_relationship = null;
[1618] Fix | Delete
$restriction_type = null;
[1619] Fix | Delete
$restriction_value = null;
[1620] Fix | Delete
if (isset($restriction['attribs']['']['relationship']))
[1621] Fix | Delete
{
[1622] Fix | Delete
$restriction_relationship = $this->sanitize($restriction['attribs']['']['relationship'], SIMPLEPIE_CONSTRUCT_TEXT);
[1623] Fix | Delete
}
[1624] Fix | Delete
if (isset($restriction['attribs']['']['type']))
[1625] Fix | Delete
{
[1626] Fix | Delete
$restriction_type = $this->sanitize($restriction['attribs']['']['type'], SIMPLEPIE_CONSTRUCT_TEXT);
[1627] Fix | Delete
}
[1628] Fix | Delete
if (isset($restriction['data']))
[1629] Fix | Delete
{
[1630] Fix | Delete
$restriction_value = $this->sanitize($restriction['data'], SIMPLEPIE_CONSTRUCT_TEXT);
[1631] Fix | Delete
}
[1632] Fix | Delete
$restrictions_parent[] = $this->registry->create('Restriction', array($restriction_relationship, $restriction_type, $restriction_value));
[1633] Fix | Delete
}
[1634] Fix | Delete
}
[1635] Fix | Delete
elseif ($restrictions = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'block'))
[1636] Fix | Delete
{
[1637] Fix | Delete
foreach ($restrictions as $restriction)
[1638] Fix | Delete
{
[1639] Fix | Delete
$restriction_relationship = 'allow';
[1640] Fix | Delete
$restriction_type = null;
[1641] Fix | Delete
$restriction_value = 'itunes';
[1642] Fix | Delete
if (isset($restriction['data']) && strtolower($restriction['data']) === 'yes')
[1643] Fix | Delete
{
[1644] Fix | Delete
$restriction_relationship = 'deny';
[1645] Fix | Delete
}
[1646] Fix | Delete
$restrictions_parent[] = $this->registry->create('Restriction', array($restriction_relationship, $restriction_type, $restriction_value));
[1647] Fix | Delete
}
[1648] Fix | Delete
}
[1649] Fix | Delete
if (is_array($restrictions_parent))
[1650] Fix | Delete
{
[1651] Fix | Delete
$restrictions_parent = array_values(array_unique($restrictions_parent));
[1652] Fix | Delete
}
[1653] Fix | Delete
else
[1654] Fix | Delete
{
[1655] Fix | Delete
$restrictions_parent = array(new SimplePie_Restriction('allow', null, 'default'));
[1656] Fix | Delete
}
[1657] Fix | Delete
[1658] Fix | Delete
// THUMBNAILS
[1659] Fix | Delete
if ($thumbnails = $this->get_item_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'thumbnail'))
[1660] Fix | Delete
{
[1661] Fix | Delete
foreach ($thumbnails as $thumbnail)
[1662] Fix | Delete
{
[1663] Fix | Delete
if (isset($thumbnail['attribs']['']['url']))
[1664] Fix | Delete
{
[1665] Fix | Delete
$thumbnails_parent[] = $this->sanitize($thumbnail['attribs']['']['url'], SIMPLEPIE_CONSTRUCT_IRI);
[1666] Fix | Delete
}
[1667] Fix | Delete
}
[1668] Fix | Delete
}
[1669] Fix | Delete
elseif ($thumbnails = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'thumbnail'))
[1670] Fix | Delete
{
[1671] Fix | Delete
foreach ($thumbnails as $thumbnail)
[1672] Fix | Delete
{
[1673] Fix | Delete
if (isset($thumbnail['attribs']['']['url']))
[1674] Fix | Delete
{
[1675] Fix | Delete
$thumbnails_parent[] = $this->sanitize($thumbnail['attribs']['']['url'], SIMPLEPIE_CONSTRUCT_IRI);
[1676] Fix | Delete
}
[1677] Fix | Delete
}
[1678] Fix | Delete
}
[1679] Fix | Delete
[1680] Fix | Delete
// TITLES
[1681] Fix | Delete
if ($title_parent = $this->get_item_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'title'))
[1682] Fix | Delete
{
[1683] Fix | Delete
if (isset($title_parent[0]['data']))
[1684] Fix | Delete
{
[1685] Fix | Delete
$title_parent = $this->sanitize($title_parent[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
[1686] Fix | Delete
}
[1687] Fix | Delete
}
[1688] Fix | Delete
elseif ($title_parent = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'title'))
[1689] Fix | Delete
{
[1690] Fix | Delete
if (isset($title_parent[0]['data']))
[1691] Fix | Delete
{
[1692] Fix | Delete
$title_parent = $this->sanitize($title_parent[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
[1693] Fix | Delete
}
[1694] Fix | Delete
}
[1695] Fix | Delete
[1696] Fix | Delete
// Clear the memory
[1697] Fix | Delete
unset($parent);
[1698] Fix | Delete
[1699] Fix | Delete
// Attributes
[1700] Fix | Delete
$bitrate = null;
[1701] Fix | Delete
$channels = null;
[1702] Fix | Delete
$duration = null;
[1703] Fix | Delete
$expression = null;
[1704] Fix | Delete
$framerate = null;
[1705] Fix | Delete
$height = null;
[1706] Fix | Delete
$javascript = null;
[1707] Fix | Delete
$lang = null;
[1708] Fix | Delete
$length = null;
[1709] Fix | Delete
$medium = null;
[1710] Fix | Delete
$samplingrate = null;
[1711] Fix | Delete
$type = null;
[1712] Fix | Delete
$url = null;
[1713] Fix | Delete
$width = null;
[1714] Fix | Delete
[1715] Fix | Delete
// Elements
[1716] Fix | Delete
$captions = null;
[1717] Fix | Delete
$categories = null;
[1718] Fix | Delete
$copyrights = null;
[1719] Fix | Delete
$credits = null;
[1720] Fix | Delete
$description = null;
[1721] Fix | Delete
$hashes = null;
[1722] Fix | Delete
$keywords = null;
[1723] Fix | Delete
$player = null;
[1724] Fix | Delete
$ratings = null;
[1725] Fix | Delete
$restrictions = null;
[1726] Fix | Delete
$thumbnails = null;
[1727] Fix | Delete
$title = null;
[1728] Fix | Delete
[1729] Fix | Delete
// If we have media:group tags, loop through them.
[1730] Fix | Delete
foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'group') as $group)
[1731] Fix | Delete
{
[1732] Fix | Delete
if(isset($group['child']) && isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['content']))
[1733] Fix | Delete
{
[1734] Fix | Delete
// If we have media:content tags, loop through them.
[1735] Fix | Delete
foreach ((array) $group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['content'] as $content)
[1736] Fix | Delete
{
[1737] Fix | Delete
if (isset($content['attribs']['']['url']))
[1738] Fix | Delete
{
[1739] Fix | Delete
// Attributes
[1740] Fix | Delete
$bitrate = null;
[1741] Fix | Delete
$channels = null;
[1742] Fix | Delete
$duration = null;
[1743] Fix | Delete
$expression = null;
[1744] Fix | Delete
$framerate = null;
[1745] Fix | Delete
$height = null;
[1746] Fix | Delete
$javascript = null;
[1747] Fix | Delete
$lang = null;
[1748] Fix | Delete
$length = null;
[1749] Fix | Delete
$medium = null;
[1750] Fix | Delete
$samplingrate = null;
[1751] Fix | Delete
$type = null;
[1752] Fix | Delete
$url = null;
[1753] Fix | Delete
$width = null;
[1754] Fix | Delete
[1755] Fix | Delete
// Elements
[1756] Fix | Delete
$captions = null;
[1757] Fix | Delete
$categories = null;
[1758] Fix | Delete
$copyrights = null;
[1759] Fix | Delete
$credits = null;
[1760] Fix | Delete
$description = null;
[1761] Fix | Delete
$hashes = null;
[1762] Fix | Delete
$keywords = null;
[1763] Fix | Delete
$player = null;
[1764] Fix | Delete
$ratings = null;
[1765] Fix | Delete
$restrictions = null;
[1766] Fix | Delete
$thumbnails = null;
[1767] Fix | Delete
$title = null;
[1768] Fix | Delete
[1769] Fix | Delete
// Start checking the attributes of media:content
[1770] Fix | Delete
if (isset($content['attribs']['']['bitrate']))
[1771] Fix | Delete
{
[1772] Fix | Delete
$bitrate = $this->sanitize($content['attribs']['']['bitrate'], SIMPLEPIE_CONSTRUCT_TEXT);
[1773] Fix | Delete
}
[1774] Fix | Delete
if (isset($content['attribs']['']['channels']))
[1775] Fix | Delete
{
[1776] Fix | Delete
$channels = $this->sanitize($content['attribs']['']['channels'], SIMPLEPIE_CONSTRUCT_TEXT);
[1777] Fix | Delete
}
[1778] Fix | Delete
if (isset($content['attribs']['']['duration']))
[1779] Fix | Delete
{
[1780] Fix | Delete
$duration = $this->sanitize($content['attribs']['']['duration'], SIMPLEPIE_CONSTRUCT_TEXT);
[1781] Fix | Delete
}
[1782] Fix | Delete
else
[1783] Fix | Delete
{
[1784] Fix | Delete
$duration = $duration_parent;
[1785] Fix | Delete
}
[1786] Fix | Delete
if (isset($content['attribs']['']['expression']))
[1787] Fix | Delete
{
[1788] Fix | Delete
$expression = $this->sanitize($content['attribs']['']['expression'], SIMPLEPIE_CONSTRUCT_TEXT);
[1789] Fix | Delete
}
[1790] Fix | Delete
if (isset($content['attribs']['']['framerate']))
[1791] Fix | Delete
{
[1792] Fix | Delete
$framerate = $this->sanitize($content['attribs']['']['framerate'], SIMPLEPIE_CONSTRUCT_TEXT);
[1793] Fix | Delete
}
[1794] Fix | Delete
if (isset($content['attribs']['']['height']))
[1795] Fix | Delete
{
[1796] Fix | Delete
$height = $this->sanitize($content['attribs']['']['height'], SIMPLEPIE_CONSTRUCT_TEXT);
[1797] Fix | Delete
}
[1798] Fix | Delete
if (isset($content['attribs']['']['lang']))
[1799] Fix | Delete
{
[1800] Fix | Delete
$lang = $this->sanitize($content['attribs']['']['lang'], SIMPLEPIE_CONSTRUCT_TEXT);
[1801] Fix | Delete
}
[1802] Fix | Delete
if (isset($content['attribs']['']['fileSize']))
[1803] Fix | Delete
{
[1804] Fix | Delete
$length = intval($content['attribs']['']['fileSize']);
[1805] Fix | Delete
}
[1806] Fix | Delete
if (isset($content['attribs']['']['medium']))
[1807] Fix | Delete
{
[1808] Fix | Delete
$medium = $this->sanitize($content['attribs']['']['medium'], SIMPLEPIE_CONSTRUCT_TEXT);
[1809] Fix | Delete
}
[1810] Fix | Delete
if (isset($content['attribs']['']['samplingrate']))
[1811] Fix | Delete
{
[1812] Fix | Delete
$samplingrate = $this->sanitize($content['attribs']['']['samplingrate'], SIMPLEPIE_CONSTRUCT_TEXT);
[1813] Fix | Delete
}
[1814] Fix | Delete
if (isset($content['attribs']['']['type']))
[1815] Fix | Delete
{
[1816] Fix | Delete
$type = $this->sanitize($content['attribs']['']['type'], SIMPLEPIE_CONSTRUCT_TEXT);
[1817] Fix | Delete
}
[1818] Fix | Delete
if (isset($content['attribs']['']['width']))
[1819] Fix | Delete
{
[1820] Fix | Delete
$width = $this->sanitize($content['attribs']['']['width'], SIMPLEPIE_CONSTRUCT_TEXT);
[1821] Fix | Delete
}
[1822] Fix | Delete
$url = $this->sanitize($content['attribs']['']['url'], SIMPLEPIE_CONSTRUCT_IRI);
[1823] Fix | Delete
[1824] Fix | Delete
// Checking the other optional media: elements. Priority: media:content, media:group, item, channel
[1825] Fix | Delete
[1826] Fix | Delete
// CAPTIONS
[1827] Fix | Delete
if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['text']))
[1828] Fix | Delete
{
[1829] Fix | Delete
foreach ($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['text'] as $caption)
[1830] Fix | Delete
{
[1831] Fix | Delete
$caption_type = null;
[1832] Fix | Delete
$caption_lang = null;
[1833] Fix | Delete
$caption_startTime = null;
[1834] Fix | Delete
$caption_endTime = null;
[1835] Fix | Delete
$caption_text = null;
[1836] Fix | Delete
if (isset($caption['attribs']['']['type']))
[1837] Fix | Delete
{
[1838] Fix | Delete
$caption_type = $this->sanitize($caption['attribs']['']['type'], SIMPLEPIE_CONSTRUCT_TEXT);
[1839] Fix | Delete
}
[1840] Fix | Delete
if (isset($caption['attribs']['']['lang']))
[1841] Fix | Delete
{
[1842] Fix | Delete
$caption_lang = $this->sanitize($caption['attribs']['']['lang'], SIMPLEPIE_CONSTRUCT_TEXT);
[1843] Fix | Delete
}
[1844] Fix | Delete
if (isset($caption['attribs']['']['start']))
[1845] Fix | Delete
{
[1846] Fix | Delete
$caption_startTime = $this->sanitize($caption['attribs']['']['start'], SIMPLEPIE_CONSTRUCT_TEXT);
[1847] Fix | Delete
}
[1848] Fix | Delete
if (isset($caption['attribs']['']['end']))
[1849] Fix | Delete
{
[1850] Fix | Delete
$caption_endTime = $this->sanitize($caption['attribs']['']['end'], SIMPLEPIE_CONSTRUCT_TEXT);
[1851] Fix | Delete
}
[1852] Fix | Delete
if (isset($caption['data']))
[1853] Fix | Delete
{
[1854] Fix | Delete
$caption_text = $this->sanitize($caption['data'], SIMPLEPIE_CONSTRUCT_TEXT);
[1855] Fix | Delete
}
[1856] Fix | Delete
$captions[] = $this->registry->create('Caption', array($caption_type, $caption_lang, $caption_startTime, $caption_endTime, $caption_text));
[1857] Fix | Delete
}
[1858] Fix | Delete
if (is_array($captions))
[1859] Fix | Delete
{
[1860] Fix | Delete
$captions = array_values(array_unique($captions));
[1861] Fix | Delete
}
[1862] Fix | Delete
}
[1863] Fix | Delete
elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['text']))
[1864] Fix | Delete
{
[1865] Fix | Delete
foreach ($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['text'] as $caption)
[1866] Fix | Delete
{
[1867] Fix | Delete
$caption_type = null;
[1868] Fix | Delete
$caption_lang = null;
[1869] Fix | Delete
$caption_startTime = null;
[1870] Fix | Delete
$caption_endTime = null;
[1871] Fix | Delete
$caption_text = null;
[1872] Fix | Delete
if (isset($caption['attribs']['']['type']))
[1873] Fix | Delete
{
[1874] Fix | Delete
$caption_type = $this->sanitize($caption['attribs']['']['type'], SIMPLEPIE_CONSTRUCT_TEXT);
[1875] Fix | Delete
}
[1876] Fix | Delete
if (isset($caption['attribs']['']['lang']))
[1877] Fix | Delete
{
[1878] Fix | Delete
$caption_lang = $this->sanitize($caption['attribs']['']['lang'], SIMPLEPIE_CONSTRUCT_TEXT);
[1879] Fix | Delete
}
[1880] Fix | Delete
if (isset($caption['attribs']['']['start']))
[1881] Fix | Delete
{
[1882] Fix | Delete
$caption_startTime = $this->sanitize($caption['attribs']['']['start'], SIMPLEPIE_CONSTRUCT_TEXT);
[1883] Fix | Delete
}
[1884] Fix | Delete
if (isset($caption['attribs']['']['end']))
[1885] Fix | Delete
{
[1886] Fix | Delete
$caption_endTime = $this->sanitize($caption['attribs']['']['end'], SIMPLEPIE_CONSTRUCT_TEXT);
[1887] Fix | Delete
}
[1888] Fix | Delete
if (isset($caption['data']))
[1889] Fix | Delete
{
[1890] Fix | Delete
$caption_text = $this->sanitize($caption['data'], SIMPLEPIE_CONSTRUCT_TEXT);
[1891] Fix | Delete
}
[1892] Fix | Delete
$captions[] = $this->registry->create('Caption', array($caption_type, $caption_lang, $caption_startTime, $caption_endTime, $caption_text));
[1893] Fix | Delete
}
[1894] Fix | Delete
if (is_array($captions))
[1895] Fix | Delete
{
[1896] Fix | Delete
$captions = array_values(array_unique($captions));
[1897] Fix | Delete
}
[1898] Fix | Delete
}
[1899] Fix | Delete
else
[1900] Fix | Delete
{
[1901] Fix | Delete
$captions = $captions_parent;
[1902] Fix | Delete
}
[1903] Fix | Delete
[1904] Fix | Delete
// CATEGORIES
[1905] Fix | Delete
if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['category']))
[1906] Fix | Delete
{
[1907] Fix | Delete
foreach ((array) $content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['category'] as $category)
[1908] Fix | Delete
{
[1909] Fix | Delete
$term = null;
[1910] Fix | Delete
$scheme = null;
[1911] Fix | Delete
$label = null;
[1912] Fix | Delete
if (isset($category['data']))
[1913] Fix | Delete
{
[1914] Fix | Delete
$term = $this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT);
[1915] Fix | Delete
}
[1916] Fix | Delete
if (isset($category['attribs']['']['scheme']))
[1917] Fix | Delete
{
[1918] Fix | Delete
$scheme = $this->sanitize($category['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT);
[1919] Fix | Delete
}
[1920] Fix | Delete
else
[1921] Fix | Delete
{
[1922] Fix | Delete
$scheme = 'http://search.yahoo.com/mrss/category_schema';
[1923] Fix | Delete
}
[1924] Fix | Delete
if (isset($category['attribs']['']['label']))
[1925] Fix | Delete
{
[1926] Fix | Delete
$label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT);
[1927] Fix | Delete
}
[1928] Fix | Delete
$categories[] = $this->registry->create('Category', array($term, $scheme, $label));
[1929] Fix | Delete
}
[1930] Fix | Delete
}
[1931] Fix | Delete
if (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['category']))
[1932] Fix | Delete
{
[1933] Fix | Delete
foreach ((array) $group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['category'] as $category)
[1934] Fix | Delete
{
[1935] Fix | Delete
$term = null;
[1936] Fix | Delete
$scheme = null;
[1937] Fix | Delete
$label = null;
[1938] Fix | Delete
if (isset($category['data']))
[1939] Fix | Delete
{
[1940] Fix | Delete
$term = $this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT);
[1941] Fix | Delete
}
[1942] Fix | Delete
if (isset($category['attribs']['']['scheme']))
[1943] Fix | Delete
{
[1944] Fix | Delete
$scheme = $this->sanitize($category['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT);
[1945] Fix | Delete
}
[1946] Fix | Delete
else
[1947] Fix | Delete
{
[1948] Fix | Delete
$scheme = 'http://search.yahoo.com/mrss/category_schema';
[1949] Fix | Delete
}
[1950] Fix | Delete
if (isset($category['attribs']['']['label']))
[1951] Fix | Delete
{
[1952] Fix | Delete
$label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT);
[1953] Fix | Delete
}
[1954] Fix | Delete
$categories[] = $this->registry->create('Category', array($term, $scheme, $label));
[1955] Fix | Delete
}
[1956] Fix | Delete
}
[1957] Fix | Delete
if (is_array($categories) && is_array($categories_parent))
[1958] Fix | Delete
{
[1959] Fix | Delete
$categories = array_values(array_unique(array_merge($categories, $categories_parent)));
[1960] Fix | Delete
}
[1961] Fix | Delete
elseif (is_array($categories))
[1962] Fix | Delete
{
[1963] Fix | Delete
$categories = array_values(array_unique($categories));
[1964] Fix | Delete
}
[1965] Fix | Delete
elseif (is_array($categories_parent))
[1966] Fix | Delete
{
[1967] Fix | Delete
$categories = array_values(array_unique($categories_parent));
[1968] Fix | Delete
}
[1969] Fix | Delete
[1970] Fix | Delete
// COPYRIGHTS
[1971] Fix | Delete
if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright']))
[1972] Fix | Delete
{
[1973] Fix | Delete
$copyright_url = null;
[1974] Fix | Delete
$copyright_label = null;
[1975] Fix | Delete
if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright'][0]['attribs']['']['url']))
[1976] Fix | Delete
{
[1977] Fix | Delete
$copyright_url = $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright'][0]['attribs']['']['url'], SIMPLEPIE_CONSTRUCT_TEXT);
[1978] Fix | Delete
}
[1979] Fix | Delete
if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright'][0]['data']))
[1980] Fix | Delete
{
[1981] Fix | Delete
$copyright_label = $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
[1982] Fix | Delete
}
[1983] Fix | Delete
$copyrights = $this->registry->create('Copyright', array($copyright_url, $copyright_label));
[1984] Fix | Delete
}
[1985] Fix | Delete
elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright']))
[1986] Fix | Delete
{
[1987] Fix | Delete
$copyright_url = null;
[1988] Fix | Delete
$copyright_label = null;
[1989] Fix | Delete
if (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright'][0]['attribs']['']['url']))
[1990] Fix | Delete
{
[1991] Fix | Delete
$copyright_url = $this->sanitize($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright'][0]['attribs']['']['url'], SIMPLEPIE_CONSTRUCT_TEXT);
[1992] Fix | Delete
}
[1993] Fix | Delete
if (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright'][0]['data']))
[1994] Fix | Delete
{
[1995] Fix | Delete
$copyright_label = $this->sanitize($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
[1996] Fix | Delete
}
[1997] Fix | Delete
$copyrights = $this->registry->create('Copyright', array($copyright_url, $copyright_label));
[1998] Fix | Delete
}
[1999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function