Cupara
Well-known member
Ok yes I am working on XFArcade and I can't stand not figuring this out. I thought by changing $_REQUEST to $this->getRequest() that would fix the issue which it did but then the redirect from the game on saving the score stopped working, if I revert then the score part redirects and gives an error. So here is the file using autocom:
Just replace $this->getRequest() with $_REQUEST[]
Here is the Session.php line:
The error is: Only variables should be passed by reference
PHP:
class Arcade_Extend_ControllerPublic_Index extends XFCP_Arcade_Extend_ControllerPublic_Index {
public function actionIndex() {
if ($this->getRequest('autocom') == 'arcade') {
// TODO: use filterSingle here?
switch ($this->getRequest()->getParam('do')) {
case 'verifyscore':
return $this->responseReroute('Arcade_ControllerPublic_Arcade', 'IpbVerifyScore');
case 'savescore':
return $this->responseReroute('Arcade_ControllerPublic_Arcade', 'IpbSaveScore');
default:
return $this->responseNoPermission();
}
} else {
return parent::actionIndex();
}
}
protected function _checkCsrf($action) {
if ($this->getRequest('autocom') == 'arcade') {
self::$_executed['csrf'] = true;
return true;
} else {
return parent::_checkCsrf($action);
}
}
}
Just replace $this->getRequest() with $_REQUEST[]
Here is the Session.php line:
PHP:
extract($this->_getScoreComparison($reversedScoring));
The error is: Only variables should be passed by reference