Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ function get_flags($setflags) {
case 'exclude':
$flags['exclude'] = $value;
break;
case 'noinstructionscache':
$flags['noinstructionscache'] = 1;
break;
}
}
// the include_content URL parameter overrides flags
Expand Down Expand Up @@ -266,7 +269,11 @@ function _get_instructions($page, $sect, $mode, $lvl, $flags, $root_id = null, $
global $ID;
$backupID = $ID;
$ID = $page; // Change the global $ID as otherwise plugins like the discussion plugin will save data for the wrong page
$ins = p_cached_instructions(wikiFN($page), false, $page);
if ($flags['noinstructionscache']) {
Comment thread
solewniczak marked this conversation as resolved.
$ins = p_get_instructions(io_readWikiPage(wikiFN($page), $page));
} else {
$ins = p_cached_instructions(wikiFN($page), false, $page);
}
$ID = $backupID;
} else {
$ins = array();
Expand Down