diff --git a/action.php b/action.php index 54bbc55..1130ad4 100644 --- a/action.php +++ b/action.php @@ -8,7 +8,6 @@ */ class action_plugin_imgpaste extends DokuWiki_Action_Plugin { - protected $tempdir = ''; protected $tempfile = ''; @@ -162,5 +161,4 @@ protected function fail($status, $text = '') http_status($status, $text); exit; } - } diff --git a/conf/default.php b/conf/default.php index c92d831..0833fce 100644 --- a/conf/default.php +++ b/conf/default.php @@ -1,4 +1,5 @@ */ - $meta['filename'] = array('string'); - diff --git a/helper.php b/helper.php index e434a9b..8164cf4 100644 --- a/helper.php +++ b/helper.php @@ -24,7 +24,8 @@ class helper_plugin_imgpaste extends Plugin * @param string $id The ID to link to * @return string The relative ID */ - public static function createRelativeID($ref, $id) { + public static function createRelativeID($ref, $id) + { // Split the reference and target IDs into namespaces $sourceNs = explode(':', $ref); array_pop($sourceNs); // Remove the page part, keep only the namespace @@ -34,9 +35,11 @@ public static function createRelativeID($ref, $id) { // Find the common prefix length $commonPrefixLength = 0; - while ($commonPrefixLength < count($sourceNs) && + while ( + $commonPrefixLength < count($sourceNs) && $commonPrefixLength < count($targetNs) && - $sourceNs[$commonPrefixLength] === $targetNs[$commonPrefixLength]) { + $sourceNs[$commonPrefixLength] === $targetNs[$commonPrefixLength] + ) { $commonPrefixLength++; }