diff options
author | petko <petko@524c5546-5005-0410-9a3e-e25e191bd360> | 2014-11-12 18:22:37 +0000 |
---|---|---|
committer | petko <petko@524c5546-5005-0410-9a3e-e25e191bd360> | 2014-11-12 18:22:37 +0000 |
commit | 05ae34400781f6d34b07cf323b9827463b67cfff (patch) | |
tree | f309e0e7513670300f530645e88cf56cccd507ea | |
parent | 37a86d8c42b82bbdef97cb85e077f7dc0149c7ee (diff) | |
download | pmwiki.svn-05ae34400781f6d34b07cf323b9827463b67cfff.tar.bz2 |
Add $DraftActionsPattern.
git-svn-id: svn://pmwiki.org/pmwiki/trunk@3013 524c5546-5005-0410-9a3e-e25e191bd360
-rw-r--r-- | scripts/draft.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/draft.php b/scripts/draft.php index d7a9f0f3..7bdf47d7 100644 --- a/scripts/draft.php +++ b/scripts/draft.php @@ -1,5 +1,5 @@ <?php if (!defined('PmWiki')) exit(); -/* Copyright 2006-2013 Patrick R. Michaud (pmichaud@pobox.com) +/* Copyright 2006-2014 Patrick R. Michaud (pmichaud@pobox.com) This file is part of PmWiki; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or @@ -27,7 +27,8 @@ if (!PageExists($pagename) && PageExists($basename)) $pagename = $basename; ## The section below handles specialized EditForm pages and handler. ## We don't bother to load it if we're not editing. -if ($action != 'edit') return; +SDV($DraftActionsPattern, 'edit'); +if (! preg_match("/($DraftActionsPattern)/", $action)) return; ## set edit form button labels to reflect draft prompts SDVA($InputTags['e_savebutton'], array('value' => ' '.XL('Publish').' ')); |