summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Sheldon <elleo@gnu.org>2010-07-31 23:10:22 +0100
committerMike Sheldon <elleo@gnu.org>2010-07-31 23:10:22 +0100
commita31d977b4323850a932770774c3bb4d321096867 (patch)
treeeaa9e284cdfe5acf6896ee82e7939322638d2f40
parentac005adbb24531010620fffbf532ec173155c143 (diff)
Make TemplatePlugin compatible with PHP 5.3
-rwxr-xr-xplugins/GNUsocialTemplatePlugin.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/GNUsocialTemplatePlugin.php b/plugins/GNUsocialTemplatePlugin.php
index 8d93ca5b3..7db2f73a8 100755
--- a/plugins/GNUsocialTemplatePlugin.php
+++ b/plugins/GNUsocialTemplatePlugin.php
@@ -46,7 +46,7 @@ class TemplatePlugin extends Plugin {
// <%feeds%>
// <%description%>
// <%head%>
- function onStartShowHead( &$act ) {
+ function onStartShowHead( $act ) {
$this->clear_xmlWriter($act);
$act->extraHead();
$this->blocks['head'] = $act->xw->flush();
@@ -64,29 +64,29 @@ class TemplatePlugin extends Plugin {
}
// <%bodytext%>
- function onStartShowContentBlock( &$act ) {
+ function onStartShowContentBlock( $act ) {
$this->clear_xmlWriter($act);
return true;
}
- function onEndShowContentBlock( &$act ) {
+ function onEndShowContentBlock( $act ) {
$this->blocks['bodytext'] = $act->xw->flush();
}
// <%localnav%>
- function onStartShowLocalNavBlock( &$act ) {
+ function onStartShowLocalNavBlock( $act ) {
$this->clear_xmlWriter($act);
return true;
}
- function onEndShowLocalNavBlock( &$act ) {
+ function onEndShowLocalNavBlock( $act ) {
$this->blocks['localnav'] = $act->xw->flush();
}
// <%export%>
- function onStartShowExportData( &$act ) {
+ function onStartShowExportData( $act ) {
$this->clear_xmlWriter($act);
return true;
}
- function onEndShowExportData( &$act ) {
+ function onEndShowExportData( $act ) {
$this->blocks['export'] = $act->xw->flush();
}
@@ -102,7 +102,7 @@ class TemplatePlugin extends Plugin {
// <%groupsbyposts%>
// <%featuredusers%>
// <%groupsbymembers%>
- function onStartShowSections( &$act ) {
+ function onStartShowSections( $act ) {
global $action;
$this->clear_xmlWriter($act);
switch ($action) {
@@ -155,7 +155,7 @@ class TemplatePlugin extends Plugin {
// <%nav%>
// <%notice%>
// <%noticeform%>
- function onStartShowHeader( &$act ) {
+ function onStartShowHeader( $act ) {
$this->clear_xmlWriter($act);
$act->showLogo();
$this->blocks['logo'] = $act->xw->flush();
@@ -174,7 +174,7 @@ class TemplatePlugin extends Plugin {
// <%secondarynav%>
// <%licenses%>
- function onStartShowFooter( &$act ) {
+ function onStartShowFooter( $act ) {
$this->clear_xmlWriter($act);
$act->showSecondaryNav();
$this->blocks['secondarynav'] = $act->xw->flush();
@@ -242,13 +242,13 @@ class TemplatePlugin extends Plugin {
}
// catching the StartShowHTML event to halt the rendering
- function onStartShowHTML( &$act ) {
+ function onStartShowHTML( $act ) {
$this->clear_xmlWriter($act);
return true;
}
// clear the xmlWriter
- function clear_xmlWriter( &$act ) {
+ function clear_xmlWriter( $act ) {
$act->xw->openMemory();
$act->xw->setIndent(true);
}