diff --git a/korganizer/plugins/picoftheday/picoftheday.cpp b/korganizer/plugins/picoftheday/picoftheday.cpp --- a/korganizer/plugins/picoftheday/picoftheday.cpp +++ b/korganizer/plugins/picoftheday/picoftheday.cpp @@ -90,7 +90,7 @@ { // Start downloading the picture if (!mFirstStepCompleted && !mFirstStepJob) { - QUrl url = QUrl(QStringLiteral("http://en.wikipedia.org/w/index.php?title=Template:POTD/") + QUrl url = QUrl(QStringLiteral("https://en.wikipedia.org/w/index.php?title=Template:POTD/") +mDate.toString(Qt::ISODate) + QStringLiteral("&action=raw")); // The file at that URL contains the file name for the POTD @@ -157,7 +157,7 @@ void POTDElement::step2GetImagePage() { if (!mSecondStepCompleted && !mSecondStepJob) { - mUrl = QUrl(QStringLiteral("http://en.wikipedia.org/wiki/File:") + mFileName); + mUrl = QUrl(QStringLiteral("https://en.wikipedia.org/wiki/File:") + mFileName); // We'll find the info to get the thumbnail we want on the POTD's image page Q_EMIT gotNewUrl(mUrl); @@ -249,7 +249,7 @@ thumbUrl.replace(QRegExp(QLatin1String("//upload.wikimedia.org/wikipedia/commons/(.*)/([^/]*)")), QStringLiteral("//upload.wikimedia.org/wikipedia/commons/thumb/\\1/\\2")); } - thumbUrl.replace(QRegExp(QLatin1String("^file:////")), QStringLiteral("http://")); + thumbUrl.replace(QRegExp(QLatin1String("^file:////")), QStringLiteral("https://")); return QUrl(thumbUrl); } diff --git a/korganizer/plugins/thisdayinhistory/thisdayinhistory.cpp b/korganizer/plugins/thisdayinhistory/thisdayinhistory.cpp --- a/korganizer/plugins/thisdayinhistory/thisdayinhistory.cpp +++ b/korganizer/plugins/thisdayinhistory/thisdayinhistory.cpp @@ -45,7 +45,7 @@ = new StoredElement(QStringLiteral("Wikipedia link"), i18n("This day in history")); element->setUrl( - QUrl(i18nc("Localized Wikipedia website", "http://en.wikipedia.org/wiki/") + QUrl(i18nc("Localized Wikipedia website", "https://en.wikipedia.org/wiki/") +date.toString(i18nc("Qt date format used by the localized Wikipedia", "MMMM_d")))); @@ -62,7 +62,7 @@ = new StoredElement(QStringLiteral("Wikipedia link"), i18n("This month in history")); element->setUrl( - QUrl(i18nc("Localized Wikipedia website", "http://en.wikipedia.org/wiki/") + QUrl(i18nc("Localized Wikipedia website", "https://en.wikipedia.org/wiki/") +date.toString(i18nc("Qt date format used by the localized Wikipedia", "MMMM_yyyy"))));