Skip to content

Commit

Permalink
add autofixer
Browse files Browse the repository at this point in the history
  • Loading branch information
mprins committed Nov 8, 2023
1 parent d7f5927 commit d5c4cf2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/autoFix.yml
@@ -0,0 +1,12 @@
name: AutoFix

on:
workflow_dispatch:
push:
branches:
- master

jobs:
release:
name: AutoFix
uses: mprins/.github/.github/workflows/autoFix.yml@main
4 changes: 2 additions & 2 deletions syntax.php
Expand Up @@ -76,7 +76,7 @@ public function handle($match, $state, $pos, Doku_Handler $handler) {
*
* @see DokuWiki_Syntax_Plugin::render()
*/
public function render($mode, Doku_Renderer $renderer, $data) {
public function render($format, Doku_Renderer $renderer, $data) {
global $lang;
global $INFO;
global $ID;
Expand All @@ -92,7 +92,7 @@ public function render($mode, Doku_Renderer $renderer, $data) {
resolve_pageid(getNS($id), $match, $exists);
}

if($mode == 'xhtml') {
if($format == 'xhtml') {
$renderer->info['cache'] = false;

$backlinks = ft_backlinks($match);
Expand Down

0 comments on commit d5c4cf2

Please sign in to comment.