Skip to content

Commit

Permalink
[TASK] PHP issue solve
Browse files Browse the repository at this point in the history
  • Loading branch information
VivekNitsan committed Oct 26, 2023
1 parent 9e3dd91 commit fad0151
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Classes/Controller/CommentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ class CommentController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControll
* @var \TYPO3\CMS\Extbase\Domain\Repository\FrontendUserRepository
*/
protected $userRepository;
protected $newsUid;
protected $pageUid;

/*
* Inject a news repository to enable DI
Expand Down Expand Up @@ -109,6 +111,7 @@ public function initializeAction()
$sessionService = GeneralUtility::makeInstance(\TYPO3\CMS\Install\Service\SessionService::class);
$sessionService->startSession();
$newsArr = GeneralUtility::_GP('tx_news_pi1');
$newsUid = '';
if (is_null($newsArr)) {
if (isset($_SESSION['params']) && $_SESSION['params']['originalSettings']['singleNews']) {
$newsUid = $_SESSION['params']['originalSettings']['singleNews'];
Expand Down
2 changes: 1 addition & 1 deletion Configuration/TypoScript/constants.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ plugin.tx_nsnewscomments{
# cat=plugin.tx_nsnewscomments/180; type=string; label=LLL:EXT:ns_news_comments/Resources/Private/Language/locallang_db.xlf:addCustomJS
CustomJS = EXT:ns_news_comments/Resources/Public/js/custom.js
# cat=plugin.tx_nsnewscomments/180; type=options[LLL:EXT:ns_news_comments/Resources/Private/Language/locallang_db.xlf:addjqueryMinJS.v3=EXT:ns_news_comments/Resources/Public/js/jquery-3.6.3.min.js,LLL:EXT:ns_news_comments/Resources/Private/Language/locallang_db.xlf:addjqueryMinJS.v2=EXT:ns_news_comments/Resources/Public/js/jquery-2.2.4.min.js]; label=LLL:EXT:ns_news_comments/Resources/Private/Language/locallang_db.xlf:addjqueryMinJS
Minjs =
Minjs = EXT:ns_news_comments/Resources/Public/js/jquery-3.6.3.min.js

# cat=plugin.tx_nsnewscomments/170/10; type=boolean; label=LLL:EXT:ns_news_comments/Resources/Private/Language/locallang_db.xlf:termsRequired
termsRequired = 0
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
'uploadfolder' => '0',
'createDirs' => '',
'clearCacheOnLoad' => 0,
'version' => '5.1.0',
'version' => '5.1.1',
'constraints' => [
'depends' => [
'typo3' => '8.0.0-11.5.99',
Expand Down

0 comments on commit fad0151

Please sign in to comment.