aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LocalFilesEditor/show_default.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2011-04-13 10:36:53 +0000
committerpatdenice <patdenice@piwigo.org>2011-04-13 10:36:53 +0000
commitd2da26e467aec1347ae7c314c4c8279cb4618c34 (patch)
tree62593399f01a303f03608d910a98cce98cc8b664 /plugins/LocalFilesEditor/show_default.php
parentc01d0c1790613fd73efc3c78d0c12debdfb1cbc7 (diff)
Clean code
git-svn-id: http://piwigo.org/svn/trunk@10348 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins/LocalFilesEditor/show_default.php')
-rw-r--r--plugins/LocalFilesEditor/show_default.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/LocalFilesEditor/show_default.php b/plugins/LocalFilesEditor/show_default.php
index 14e2ad70d..c3ec7fa1a 100644
--- a/plugins/LocalFilesEditor/show_default.php
+++ b/plugins/LocalFilesEditor/show_default.php
@@ -24,7 +24,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');
+include_once(LOCALEDIT_PATH.'include/functions.inc.php');
load_language('plugin.lang', LOCALEDIT_PATH);
check_status(ACCESS_ADMINISTRATOR);
@@ -36,7 +36,7 @@ if (isset($_GET['file']))
die('Hacking attempt!');
}
- $template->set_filename('show_default', dirname(__FILE__) . '/show_default.tpl');
+ $template->set_filename('show_default', dirname(__FILE__) . '/template/show_default.tpl');
$file = file_get_contents(PHPWG_ROOT_PATH . $path);
$title = str_replace('/', ' / ', $path);
@@ -44,8 +44,6 @@ if (isset($_GET['file']))
$template->assign(array(
'TITLE' => $title,
'DEFAULT_CONTENT' => $file,
- 'LOCALEDIT_PATH' => LOCALEDIT_PATH,
- 'CODEMIRROR_MODE' => 'application/x-httpd-php'
)
);