Skip to content

Commit

Permalink
pkp#3578: cleaning up strict PHP warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
crism committed May 21, 2018
1 parent dfa43c6 commit 3ca3ca5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion classes/controllers/grid/CategoryGridHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ protected function getRowsSequence($request) {
/**
* @see GridHandler::doSpecificFetchGridActions($args, $request)
*/
protected function doSpecificFetchGridActions($args, $request, &$templateMgr) {
protected function doSpecificFetchGridActions($args, $request, $templateMgr) {
// Render the body elements (category groupings + rows inside a <tbody>)
$gridBodyParts = $this->_renderCategoriesInternally($request);
$templateMgr->assign('gridBodyParts', $gridBodyParts);
Expand Down
4 changes: 2 additions & 2 deletions classes/controllers/grid/plugins/PluginGridHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function __construct($roles) {
/**
* @copydoc GridHandler::initialize()
*/
function initialize($request) {
function initialize($request, $args = null) {
parent::initialize($request);

// Load language components
Expand Down Expand Up @@ -151,7 +151,7 @@ protected function getCategoryRowInstance() {
/**
* @copydoc CategoryGridHandler::loadCategoryData()
*/
function loadCategoryData($request, &$categoryDataElement, $filter) {
function loadCategoryData($request, &$categoryDataElement, $filter = null) {
$plugins =& PluginRegistry::loadCategory($categoryDataElement);

$versionDao = DAORegistry::getDAO('VersionDAO');
Expand Down
8 changes: 5 additions & 3 deletions controllers/grid/plugins/form/UploadPluginForm.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function readInputData() {
/**
* @copydoc Form::fetch()
*/
function fetch($request) {
function fetch($request, $template = null, $display = false) {
$templateMgr = TemplateManager::getManager($request);
$templateMgr->assign(array(
'function' => $this->_function,
Expand All @@ -64,10 +64,12 @@ function fetch($request) {
/**
* @copydoc Form::execute()
*/
function execute($request) {
parent::execute($request);
function execute() {
parent::execute();

// Retrieve the temporary file.
$application = PKPApplication::getApplication();
$request = $application->getRequest();
$user = $request->getUser();
$temporaryFileId = $this->getData('temporaryFileId');
$temporaryFileDao = DAORegistry::getDAO('TemporaryFileDAO');
Expand Down

0 comments on commit 3ca3ca5

Please sign in to comment.