[pLog-svn] r1295 - in plugins/trunk/templateeditor/class: action
view
mark at devel.plogworld.net
mark at devel.plogworld.net
Thu Mar 3 06:36:34 GMT 2005
Author: mark
Date: 2005-03-03 06:36:34 +0000 (Thu, 03 Mar 2005)
New Revision: 1295
Modified:
plugins/trunk/templateeditor/class/action/pluginblogcopytemplatefileaction.class.php
plugins/trunk/templateeditor/class/action/pluginsitecopytemplatefileaction.class.php
plugins/trunk/templateeditor/class/view/pluginblogtemplateslistview.class.php
plugins/trunk/templateeditor/class/view/pluginsitetemplateslistview.class.php
Log:
Add the default to getTemplateFile() if the allowedExtension is not set. or it will show all files, it is not goold.
Modified: plugins/trunk/templateeditor/class/action/pluginblogcopytemplatefileaction.class.php
===================================================================
--- plugins/trunk/templateeditor/class/action/pluginblogcopytemplatefileaction.class.php 2005-03-03 03:35:44 UTC (rev 1294)
+++ plugins/trunk/templateeditor/class/action/pluginblogcopytemplatefileaction.class.php 2005-03-03 06:36:34 UTC (rev 1295)
@@ -109,7 +109,8 @@
function getTemplateFiles( $folder ) {
$config =& Config::getConfig();
- $allowedExtension = $config->getValue( "plugin_templateeditor_allowedextension" );
+ $allowedExtension = $config->getValue( "plugin_templateeditor_allowedextension" );
+ if ( $allowedExtension == "" ) $allowedExtension = "css,inc,template,txt";
$extensionList = explode(",", $allowedExtension);
$templateFiles = Array();
for ($i = 0; $i < count($extensionList); $i++) {
Modified: plugins/trunk/templateeditor/class/action/pluginsitecopytemplatefileaction.class.php
===================================================================
--- plugins/trunk/templateeditor/class/action/pluginsitecopytemplatefileaction.class.php 2005-03-03 03:35:44 UTC (rev 1294)
+++ plugins/trunk/templateeditor/class/action/pluginsitecopytemplatefileaction.class.php 2005-03-03 06:36:34 UTC (rev 1295)
@@ -109,7 +109,8 @@
function getTemplateFiles( $folder ) {
$config =& Config::getConfig();
- $allowedExtension = $config->getValue( "plugin_templateeditor_allowedextension" );
+ $allowedExtension = $config->getValue( "plugin_templateeditor_allowedextension" );
+ if ( $allowedExtension == "" ) $allowedExtension = "css,inc,template,txt";
$extensionList = explode(",", $allowedExtension);
$templateFiles = Array();
for ($i = 0; $i < count($extensionList); $i++) {
Modified: plugins/trunk/templateeditor/class/view/pluginblogtemplateslistview.class.php
===================================================================
--- plugins/trunk/templateeditor/class/view/pluginblogtemplateslistview.class.php 2005-03-03 03:35:44 UTC (rev 1294)
+++ plugins/trunk/templateeditor/class/view/pluginblogtemplateslistview.class.php 2005-03-03 06:36:34 UTC (rev 1295)
@@ -42,7 +42,8 @@
function getTemplateFiles( $folder ) {
$config =& Config::getConfig();
- $allowedExtension = $config->getValue( "plugin_templateeditor_allowedextension" );
+ $allowedExtension = $config->getValue( "plugin_templateeditor_allowedextension" );
+ if ( $allowedExtension == "" ) $allowedExtension = "css,inc,template,txt";
$extensionList = explode(",", $allowedExtension);
$templateFiles = Array();
for ($i = 0; $i < count($extensionList); $i++) {
Modified: plugins/trunk/templateeditor/class/view/pluginsitetemplateslistview.class.php
===================================================================
--- plugins/trunk/templateeditor/class/view/pluginsitetemplateslistview.class.php 2005-03-03 03:35:44 UTC (rev 1294)
+++ plugins/trunk/templateeditor/class/view/pluginsitetemplateslistview.class.php 2005-03-03 06:36:34 UTC (rev 1295)
@@ -42,7 +42,8 @@
function getTemplateFiles( $folder ) {
$config =& Config::getConfig();
- $allowedExtension = $config->getValue( "plugin_templateeditor_allowedextension" );
+ $allowedExtension = $config->getValue( "plugin_templateeditor_allowedextension" );
+ if ( $allowedExtension == "" ) $allowedExtension = "css,inc,template,txt";
$extensionList = explode(",", $allowedExtension);
$templateFiles = Array();
for ($i = 0; $i < count($extensionList); $i++) {
More information about the pLog-svn
mailing list