Robert Vogel has uploaded a new change for review.
https://gerrit.wikimedia.org/r/231224
Change subject: UEModulePDF: Fixed hook parameters
......................................................................
UEModulePDF: Fixed hook parameters
Made some parameters to be passed as reference. Otherwise this hook does
not make much sense.
Needs merge to REL1_23
Change-Id: Iceb6dc7b39faa2730ca12ae82b674309af2aae5b
---
M UEModulePDF/includes/PDFServlet.class.php
1 file changed, 3 insertions(+), 3 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions
refs/changes/24/231224/1
diff --git a/UEModulePDF/includes/PDFServlet.class.php
b/UEModulePDF/includes/PDFServlet.class.php
index e86b4a7..7ca7adb 100644
--- a/UEModulePDF/includes/PDFServlet.class.php
+++ b/UEModulePDF/includes/PDFServlet.class.php
@@ -248,8 +248,8 @@
// TODO RBV (05.04.12 11:48): Check if urlencode has
side effects
$oImageElement->setAttribute( 'src',
'images/'.urlencode($sSrcFilename) );
$sFileName = $sSrcFilename;
- wfRunHooks( 'BSUEModulePDFFindFiles', array( $this,
$oImageElement, $sAbsoluteFileSystemPath, $sFileName, 'images' ) );
- wfRunHooks( 'BSUEModulePDFWebserviceFindFiles', array(
$this, $oImageElement, $sAbsoluteFileSystemPath, $sFileName, 'images' ) );
+ wfRunHooks( 'BSUEModulePDFFindFiles', array( $this,
$oImageElement, &$sAbsoluteFileSystemPath, &$sFileName, 'images' ) );
+ wfRunHooks( 'BSUEModulePDFWebserviceFindFiles', array(
$this, $oImageElement, &$sAbsoluteFileSystemPath, &$sFileName, 'images' ) );
$this->aFiles['images'][$sFileName] =
$sAbsoluteFileSystemPath;
}
@@ -293,4 +293,4 @@
return $sNewUrl;
}
//</editor-fold>
-}
\ No newline at end of file
+}
--
To view, visit https://gerrit.wikimedia.org/r/231224
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iceb6dc7b39faa2730ca12ae82b674309af2aae5b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: REL1_23
Gerrit-Owner: Robert Vogel <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits