Loading _test/instruction.test.php +1 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ class instructions_plugin_ifauthex_test extends DokuWikiTest $calls = array_map([self::class, 'stripByteIndex'], $calls); $this->assertEquals(json_decode(file_get_contents(__DIR__.'/testpage.json')), $calls); $this->assertJsonStringEqualsJsonFile(__DIR__.'/testpage.json', json_encode($calls)); //print_r($calls); } Loading _test/testpage.json +0 −6 Original line number Diff line number Diff line Loading @@ -7,9 +7,6 @@ ["p_close", []], ["plugin", ["ifauthex", [1, " admin"], 1, "<ifauth admin>"]], ["header", ["Sec 2", 3, 40]], ["p_open", []], ["plugin", ["ifauthex_closesection", [], 5, ""]], ["p_close", []], ["p_open", []], ["plugin", ["ifauthex", [3, "2def"], 3, "2def"]], ["p_close", []], Loading @@ -23,9 +20,6 @@ ["p_close", []], ["plugin", ["ifauthex", [1, " admina"], 1, "<ifauth admina>"]], ["header", ["Sec 4", 3, 114]], ["p_open", []], ["plugin", ["ifauthex_closesection", [], 5, ""]], ["p_close", []], ["p_open", []], ["plugin", ["ifauthex", [3, "4jkl"], 3, "4jkl"]], ["p_close", []], Loading syntax.php +3 −3 Original line number Diff line number Diff line Loading @@ -86,9 +86,9 @@ class syntax_plugin_ifauthex extends DokuWiki_Syntax_Plugin $handler->_addCall('header',array($title,$level,$pos), $pos); // close the section edit the header could open if ($title && $level <= $conf['maxseclevel']) { $handler->addPluginCall('ifauthex_closesection', array(), DOKU_LEXER_SPECIAL, $pos, ''); } # if ($title && $level <= $conf['maxseclevel']) { # $handler->addPluginCall('ifauthex_closesection', array(), DOKU_LEXER_SPECIAL, $pos, ''); # } break; case DOKU_LEXER_UNMATCHED: return array($state, $match); Loading Loading
_test/instruction.test.php +1 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ class instructions_plugin_ifauthex_test extends DokuWikiTest $calls = array_map([self::class, 'stripByteIndex'], $calls); $this->assertEquals(json_decode(file_get_contents(__DIR__.'/testpage.json')), $calls); $this->assertJsonStringEqualsJsonFile(__DIR__.'/testpage.json', json_encode($calls)); //print_r($calls); } Loading
_test/testpage.json +0 −6 Original line number Diff line number Diff line Loading @@ -7,9 +7,6 @@ ["p_close", []], ["plugin", ["ifauthex", [1, " admin"], 1, "<ifauth admin>"]], ["header", ["Sec 2", 3, 40]], ["p_open", []], ["plugin", ["ifauthex_closesection", [], 5, ""]], ["p_close", []], ["p_open", []], ["plugin", ["ifauthex", [3, "2def"], 3, "2def"]], ["p_close", []], Loading @@ -23,9 +20,6 @@ ["p_close", []], ["plugin", ["ifauthex", [1, " admina"], 1, "<ifauth admina>"]], ["header", ["Sec 4", 3, 114]], ["p_open", []], ["plugin", ["ifauthex_closesection", [], 5, ""]], ["p_close", []], ["p_open", []], ["plugin", ["ifauthex", [3, "4jkl"], 3, "4jkl"]], ["p_close", []], Loading
syntax.php +3 −3 Original line number Diff line number Diff line Loading @@ -86,9 +86,9 @@ class syntax_plugin_ifauthex extends DokuWiki_Syntax_Plugin $handler->_addCall('header',array($title,$level,$pos), $pos); // close the section edit the header could open if ($title && $level <= $conf['maxseclevel']) { $handler->addPluginCall('ifauthex_closesection', array(), DOKU_LEXER_SPECIAL, $pos, ''); } # if ($title && $level <= $conf['maxseclevel']) { # $handler->addPluginCall('ifauthex_closesection', array(), DOKU_LEXER_SPECIAL, $pos, ''); # } break; case DOKU_LEXER_UNMATCHED: return array($state, $match); Loading