Bladeren bron

call_integration_hook does not need an empty array passed to it

Signed-off-by: John Rayes <[email protected]>
John Rayes 12 jaren geleden
bovenliggende
commit
eecfd81c99
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 1 1
      Sources/Post.php
  2. 1 1
      Themes/default/Post.template.php

+ 1 - 1
Sources/Post.php

@@ -1463,7 +1463,7 @@ function Post2()
 	//   type => MIME type (optional if not available on upload).
 	//   errors => An array of errors (use the index of the $txt variable for that error).
 	// Template changes can be done using "integrate_upload_template".
-	call_integration_hook('integrate_attachment_upload', array());
+	call_integration_hook('integrate_attachment_upload');
 
 	// If this isn't a new topic load the topic info that we need.
 	if (!empty($topic))

+ 1 - 1
Themes/default/Post.template.php

@@ -465,7 +465,7 @@ function template_main()
 		}
 
 		// Add any template changes for an alternative upload system here.
-		call_integration_hook('integrate_upload_template', array());
+		call_integration_hook('integrate_upload_template');
 
 		echo '
 						<dd class="smalltext">';