Skip to content

Commit 6263325

Browse files
committed
Fix reference assignment of plugin_load
1 parent 7b06ff4 commit 6263325

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

action.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,9 @@ function handle_secedit_button(Doku_Event &$event, $params) {
301301
// Special handling for the edittable plugin
302302
if ($data['target'] == 'table' && !plugin_isdisabled('edittable')) {
303303
/* @var action_plugin_edittable_editor $edittable */
304-
$edittable =& plugin_load('action', 'edittable_editor');
304+
$edittable = plugin_load('action', 'edittable_editor');
305305
if (is_null($edittable))
306-
$edittable =& plugin_load('action', 'edittable');
306+
$edittable = plugin_load('action', 'edittable');
307307
$data['name'] = $edittable->getLang('secedit_name');
308308
}
309309

helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ function _get_included_pages($mode, $page, $sect, $parent_id, $flags) {
711711
break;
712712
case 'tagtopic':
713713
if (!$this->taghelper)
714-
$this->taghelper =& plugin_load('helper', 'tag');
714+
$this->taghelper = plugin_load('helper', 'tag');
715715
if(!$this->taghelper) {
716716
msg('You have to install the tag plugin to use this functionality!', -1);
717717
return array();

syntax/footer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,21 +101,21 @@ function html_footer($page, $sect, $sect_title, $flags, $footer_lvl, &$renderer)
101101
}
102102

103103
// comments - let Discussion Plugin do the work for us
104-
if (empty($sect) && $flags['comments'] && (!plugin_isdisabled('discussion')) && ($discussion =& plugin_load('helper', 'discussion'))) {
104+
if (empty($sect) && $flags['comments'] && (!plugin_isdisabled('discussion')) && ($discussion = plugin_load('helper', 'discussion'))) {
105105
$disc = $discussion->td($page);
106106
if ($disc) $xhtml[] = '<span class="comment">' . $disc . '</span>';
107107
}
108108

109109
// linkbacks - let Linkback Plugin do the work for us
110-
if (empty($sect) && $flags['linkbacks'] && (!plugin_isdisabled('linkback')) && ($linkback =& plugin_load('helper', 'linkback'))) {
110+
if (empty($sect) && $flags['linkbacks'] && (!plugin_isdisabled('linkback')) && ($linkback = plugin_load('helper', 'linkback'))) {
111111
$link = $linkback->td($page);
112112
if ($link) $xhtml[] = '<span class="linkback">' . $link . '</span>';
113113
}
114114

115115
$xhtml = implode(DOKU_LF . DOKU_TAB . '&middot; ', $xhtml);
116116

117117
// tags - let Tag Plugin do the work for us
118-
if (empty($sect) && $flags['tags'] && (!plugin_isdisabled('tag')) && ($tag =& plugin_load('helper', 'tag'))) {
118+
if (empty($sect) && $flags['tags'] && (!plugin_isdisabled('tag')) && ($tag = plugin_load('helper', 'tag'))) {
119119
$tags = $tag->td($page);
120120
if($tags) {
121121
$xhtml .= '<div class="tags"><span>' . DOKU_LF

syntax/header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function render($mode, Doku_Renderer $renderer, $data) {
7676
* @author Michael Klier <[email protected]>
7777
*/
7878
function _get_firsttag($page) {
79-
if(plugin_isdisabled('tag') || (!$taghelper =& plugin_load('helper', 'tag'))) {
79+
if(plugin_isdisabled('tag') || (!plugin_load('helper', 'tag'))) {
8080
return false;
8181
}
8282
$subject = p_get_metadata($page, 'subject');

0 commit comments

Comments
 (0)