Skip to content

Commit

Permalink
Updated deprecated PHP construction and removed PHP 5 compatibility c…
Browse files Browse the repository at this point in the history
…ode/comments
  • Loading branch information
jonasraoni committed Jan 8, 2022
1 parent 5073663 commit ff78374
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 20 deletions.
4 changes: 0 additions & 4 deletions classes/install/Install.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@

use PKP\install\PKPInstall;

// Default installation data
define('INSTALLER_DEFAULT_SITE_TITLE', 'common.software');
define('INSTALLER_DEFAULT_MIN_PASSWORD_LENGTH', 6);

class Install extends PKPInstall
{
/**
Expand Down
2 changes: 1 addition & 1 deletion classes/statistics/StatisticsHelper.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,5 @@ protected function getReportObjectTypesArray()

if (!PKP_STRICT_MODE) {
class_alias('\APP\statistics\StatisticsHelper', '\StatisticsHelper');
define('STATISTICS_DIMENSION_ISSUE_ID', \StatisticsHelper::STATISTICS_DIMENSION_ISSUE_ID);
define('STATISTICS_DIMENSION_ISSUE_ID', StatisticsHelper::STATISTICS_DIMENSION_ISSUE_ID);
}
2 changes: 1 addition & 1 deletion classes/subscription/InstitutionalSubscriptionDAO.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ public function _insertSubscriptionIPRanges($subscriptionId, $ipRanges)

$returner = true;

while ([, $curIPString] = each($ipRanges)) {
foreach ($ipRanges as $curIPString) {
$ipStart = null;
$ipEnd = null;

Expand Down
9 changes: 0 additions & 9 deletions plugins/importexport/doaj/filter/DOAJJsonFilter.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,6 @@ public function &process(&$pubObject)
$article['bibjson']['keywords'] = $allowedNoOfKeywords;
}

/* not needed here:
// Language
$language = AppLocale::get3LetterIsoFromLocale($pubObject->getLocale());
// publisherRecordId
$publisherRecordId = $pubObject->getId();
// documentType
$type = $pubObject->getType($pubObject->getLocale());
*/

$json = json_encode($article);
return $json;
}
Expand Down
7 changes: 2 additions & 5 deletions plugins/reports/counter/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
*
*/

// Because of the use of Namespaces, this plugin now requires PHP 5.3 or better
if (version_compare(PHP_VERSION, '5.3.0') >= 0) {
require_once(dirname(__FILE__) . '/CounterReportPlugin.inc.php');
require_once dirname(__FILE__) . '/CounterReportPlugin.inc.php';

return new CounterReportPlugin();
}
return new CounterReportPlugin();

0 comments on commit ff78374

Please sign in to comment.