Commit a35929b1 authored by asmecher's avatar asmecher
Browse files

#4738# Reference handling with PHP 5.3

parent 1be47b02
......@@ -166,11 +166,12 @@ class BlockPlugin extends Plugin {
return $templateMgr->fetch($this->getTemplatePath() . $blockTemplateFilename);
}
function callback($hookName, &$args) {
function callback($hookName, $args) {
$params =& $args[0];
$smarty =& $args[1];
$output =& $args[2];
$output .= $this->getContents($smarty);
return false;
}
}
......
......@@ -41,7 +41,7 @@ class RoundedCornersPlugin extends GenericPlugin {
return false;
}
function templateManagerCallback($hookName, &$args) {
function templateManagerCallback($hookName, $args) {
$templateMgr =& $args[0]; //TemplateManager::getManager();
$baseUrl = $templateMgr->get_template_vars('baseUrl');
$roundedCornerCssUrl = $baseUrl . '/plugins/generic/roundedCorners/roundedcorners.css';
......
......@@ -68,7 +68,7 @@ class XMLGalleyPlugin extends GenericPlugin {
* Return XML-derived galley by ID from article_xml_galleys
* (which does not exist in article_galleys)
*/
function getXMLGalley($hookName, &$args) {
function getXMLGalley($hookName, $args) {
if (!$this->getEnabled()) return false;
$galleyId =& $args[0];
$articleId =& $args[1];
......
......@@ -13,13 +13,10 @@
{assign var="pageId" value="manager.groups"}
{include file="common/header.tpl"}
{/strip}
<script type="text/javascript">
{literal}
$(document).ready(function() { setupTableDND("#dragTable",
{/literal}
"{url op=moveMembership path=$group->getId()}"
{literal}
); });
$(document).ready(function() { setupTableDND("#dragTable", {/literal}"{url op=moveMembership path=$group->getId()}"{literal}); });
{/literal}
</script>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment