aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--plugins/LocalFilesEditor/main.inc.php2
-rw-r--r--plugins/LocalFilesEditor/show_default.php7
-rw-r--r--plugins/LocalFilesEditor/show_default.tpl6
3 files changed, 10 insertions, 5 deletions
diff --git a/plugins/LocalFilesEditor/main.inc.php b/plugins/LocalFilesEditor/main.inc.php
index 41c12e5df..565670286 100644
--- a/plugins/LocalFilesEditor/main.inc.php
+++ b/plugins/LocalFilesEditor/main.inc.php
@@ -23,7 +23,7 @@
/*
Plugin Name: LocalFiles Editor
-Version: 2.0
+Version: 2.0.a
Description: Edit local files from administration panel / Editeur de fichiers locaux
Plugin URI: http://piwigo.org/ext/extension_view.php?eid=144
Author: Piwigo team
diff --git a/plugins/LocalFilesEditor/show_default.php b/plugins/LocalFilesEditor/show_default.php
index da0e515e8..c2af808c4 100644
--- a/plugins/LocalFilesEditor/show_default.php
+++ b/plugins/LocalFilesEditor/show_default.php
@@ -22,6 +22,7 @@
// +-----------------------------------------------------------------------+
define('PHPWG_ROOT_PATH', '../../');
+define('IN_ADMIN', true);
include_once(PHPWG_ROOT_PATH . 'include/common.inc.php');
include_once(LOCALEDIT_PATH.'functions.inc.php');
load_language('plugin.lang', LOCALEDIT_PATH);
@@ -46,15 +47,15 @@ if (isset($_GET['file']))
'language' => substr($user['language'], 0, 2));
$file = file_get_contents(PHPWG_ROOT_PATH . $path);
-
+ $title = str_replace('/', ' / ', $path);
+
$template->assign(array(
+ 'TITLE' => $title,
'DEFAULT_CONTENT' => $file,
'LOCALEDIT_PATH' => LOCALEDIT_PATH,
'LOAD_EDITAREA' => isset($conf['LocalFilesEditor']) ? $conf['LocalFilesEditor'] : 'on',
'EDITAREA_OPTIONS' => $editarea_options));
- $title = $path;
- $page['page_banner'] = '<h1>'.str_replace('/', ' / ', $path).'</h1>';
$page['body_id'] = 'thePopuphelpPage';
include(PHPWG_ROOT_PATH.'include/page_header.php');
diff --git a/plugins/LocalFilesEditor/show_default.tpl b/plugins/LocalFilesEditor/show_default.tpl
index ffdca4d68..478c4a34a 100644
--- a/plugins/LocalFilesEditor/show_default.tpl
+++ b/plugins/LocalFilesEditor/show_default.tpl
@@ -1,5 +1,8 @@
{* $Id$ *}
-{html_head}<link rel="stylesheet" type="text/css" href="{$LOCALEDIT_PATH}locfiledit.css">{/html_head}
+{html_head}
+<link rel="stylesheet" type="text/css" href="{$LOCALEDIT_PATH}locfiledit.css">
+<style type="text/css">#headbranch, #theHeader, #copyright {ldelim} display: none; }</style>
+{/html_head}
{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
{known_script id="editarea" src=$LOCALEDIT_PATH|@cat:"editarea/edit_area_full.js"}
<script type="text/javascript">
@@ -24,6 +27,7 @@ function unloadEditarea() {ldelim}
</script>
<div id="LocalFilesEditor">
+<h1>{$TITLE}</h1>
<textarea id="text" rows="30" cols="90">{$DEFAULT_CONTENT}</textarea>