Index: trunk/extensions/phpbbData/hook_handleFromWikiQuery.php |
— | — | @@ -33,3 +33,15 @@ |
34 | 34 | } |
35 | 35 | } |
36 | 36 | $phpbb_hook->register('BeforePageDisplay', 'efPhpbbData_handleToWiki'); |
| 37 | + |
| 38 | +function efPhpbbData_doTokenReplacement(&$hooks, $outputCache) { |
| 39 | + $tokens = array( |
| 40 | + '{PAGE_URL_LOCAL_ESCAPED}' => urlencode('test') ); |
| 41 | + |
| 42 | + foreach ($tokens as $key => $value) { |
| 43 | + $outputCache = str_replace($key,$value,$outputCache); |
| 44 | + } |
| 45 | + |
| 46 | + return $outputCache; |
| 47 | +} |
| 48 | +$phpbb_hook->register('BeforePageDisplay', 'efPhpbbData_doTokenReplacement'); |