mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
Removing Deprecated error message for PHP 7 (#764)
This commit is contained in:
committed by
Pierrick Le Gall
parent
83dac227cf
commit
b585f5bcc3
@@ -288,7 +288,7 @@ class FeedHtmlField {
|
||||
* Creates a new instance of FeedHtmlField.
|
||||
* @param $string: if given, sets the rawFieldContent property
|
||||
*/
|
||||
function FeedHtmlField($parFieldContent) {
|
||||
function __construct($parFieldContent) {
|
||||
if ($parFieldContent) {
|
||||
$this->rawFieldContent = $parFieldContent;
|
||||
}
|
||||
@@ -708,7 +708,7 @@ class FeedDate {
|
||||
* Accepts RFC 822, ISO 8601 date formats as well as unix time stamps.
|
||||
* @param mixed $dateString optional the date this FeedDate will represent. If not specified, the current date and time is used.
|
||||
*/
|
||||
function FeedDate($dateString="") {
|
||||
function __construct($dateString="") {
|
||||
if ($dateString=="") $dateString = date("r");
|
||||
|
||||
if (is_integer($dateString)) {
|
||||
@@ -884,7 +884,7 @@ class RSSCreator091 extends FeedCreator {
|
||||
*/
|
||||
var $RSSVersion;
|
||||
|
||||
function RSSCreator091() {
|
||||
function __construct() {
|
||||
$this->_setRSSVersion("0.91");
|
||||
$this->contentType = "application/rss+xml";
|
||||
}
|
||||
@@ -1016,7 +1016,7 @@ class RSSCreator091 extends FeedCreator {
|
||||
*/
|
||||
class RSSCreator20 extends RSSCreator091 {
|
||||
|
||||
function RSSCreator20() {
|
||||
function __construct() {
|
||||
parent::_setRSSVersion("2.0");
|
||||
}
|
||||
|
||||
@@ -1033,7 +1033,7 @@ class RSSCreator20 extends RSSCreator091 {
|
||||
*/
|
||||
class PIECreator01 extends FeedCreator {
|
||||
|
||||
function PIECreator01() {
|
||||
function __construct() {
|
||||
$this->encoding = "utf-8";
|
||||
}
|
||||
|
||||
@@ -1091,7 +1091,7 @@ class PIECreator01 extends FeedCreator {
|
||||
*/
|
||||
class AtomCreator03 extends FeedCreator {
|
||||
|
||||
function AtomCreator03() {
|
||||
function __construct() {
|
||||
$this->contentType = "application/atom+xml";
|
||||
$this->encoding = "utf-8";
|
||||
}
|
||||
@@ -1159,7 +1159,7 @@ class AtomCreator03 extends FeedCreator {
|
||||
*/
|
||||
class MBOXCreator extends FeedCreator {
|
||||
|
||||
function MBOXCreator() {
|
||||
function __construct() {
|
||||
$this->contentType = "text/plain";
|
||||
$this->encoding = "ISO-8859-15";
|
||||
}
|
||||
@@ -1246,7 +1246,7 @@ class MBOXCreator extends FeedCreator {
|
||||
*/
|
||||
class OPMLCreator extends FeedCreator {
|
||||
|
||||
function OPMLCreator() {
|
||||
function __construct() {
|
||||
$this->encoding = "utf-8";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user