Permalink
Browse files

Fix placement of section edit button by fixing a name

  • Loading branch information...
1 parent 5cf0268 commit cc549663b05b92f7b85027680ce46dba51b3799a @michitux michitux committed Jul 19, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 helper.php
  2. +2 −2 syntax/{close_last_secedit.php → closelastsecedit.php}
View
@@ -373,7 +373,7 @@ function _convert_instructions(&$ins, $lvl, $page, $sect, $flags, $root_id) {
// close last open section of the included page if there is any
if ($contains_secedit) {
- array_push($ins, array('plugin', array('include_close_last_secedit', array())));
+ array_push($ins, array('plugin', array('include_closelastsecedit', array())));
}
// add edit button
@@ -9,7 +9,7 @@
if (!defined('DOKU_PLUGIN'))
define('DOKU_PLUGIN', DOKU_INC . 'lib/plugins/');
-class syntax_plugin_include_close_last_secedit extends DokuWiki_Syntax_Plugin {
+class syntax_plugin_include_closelastsecedit extends DokuWiki_Syntax_Plugin {
function getType() {
return 'formatting';
@@ -28,7 +28,7 @@ function handle($match, $state, $pos, &$handler) {
*/
function render($mode, &$renderer, $data) {
if ($mode == 'xhtml') {
- $renderer->finishSectionEdit();
+ $renderer->finishSectionEdit();
return true;
}
return false;

0 comments on commit cc54966

Please sign in to comment.