aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LocalFilesEditor/show_default.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2009-03-11 16:39:44 +0000
committerpatdenice <patdenice@piwigo.org>2009-03-11 16:39:44 +0000
commit1516e8833f3a73b1dc4b73e7fa7d3c36bc25c0b4 (patch)
treeed310ca7115b56d014f60a84f1a3d5372cac7edb /plugins/LocalFilesEditor/show_default.php
parentbea3462f56e589ac95619c865cb4d89efe554d13 (diff)
Cosmetic Corections for LocalFiles Editor.
git-svn-id: http://piwigo.org/svn/trunk@3186 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--plugins/LocalFilesEditor/show_default.php7
1 files changed, 4 insertions, 3 deletions
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');