[pLog-svn] r702 - in plog/trunk: class/action/admin templates/admin
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Sat Jan 8 23:53:16 GMT 2005
Author: oscar
Date: 2005-01-08 23:53:15 +0000 (Sat, 08 Jan 2005)
New Revision: 702
Modified:
plog/trunk/class/action/admin/adminresourcelistaction.class.php
plog/trunk/templates/admin/resourcelist.template
Log:
fixed an issue with htmlarea and with adding links to resources in posts
Modified: plog/trunk/class/action/admin/adminresourcelistaction.class.php
===================================================================
--- plog/trunk/class/action/admin/adminresourcelistaction.class.php 2005-01-08 23:36:26 UTC (rev 701)
+++ plog/trunk/class/action/admin/adminresourcelistaction.class.php 2005-01-08 23:53:15 UTC (rev 702)
@@ -24,16 +24,11 @@
function AdminResourceListAction( $actionInfo, $request )
{
$this->AdminAction( $actionInfo, $request );
- }
-
- function validate()
- {
+
$this->_destination = $this->_request->getValue( "mode" );
$this->_albumId = $this->_request->getValue( "albumId" );
if( $this->_albumId == "" )
- $this->_albumId = 0;
-
- return true;
+ $this->_albumId = 0;
}
/**
Modified: plog/trunk/templates/admin/resourcelist.template
===================================================================
--- plog/trunk/templates/admin/resourcelist.template 2005-01-08 23:36:26 UTC (rev 701)
+++ plog/trunk/templates/admin/resourcelist.template 2005-01-08 23:53:15 UTC (rev 702)
@@ -115,16 +115,16 @@
</td>
<td>
{if $htmlarea}
- <a href="javascript:addHtmlareaLink({$destination}, {$blog->getId()}, {$resource->getResourceType()}, '{$resource->getFileName()|escape:"javascript"}', '{$resource->getDescription()|escape:"javascript"}', false);">{$locale->tr("add_resource")}</a><br/>
+ <a href="javascript:addHtmlareaLink({$destination},{$blog->getId()},{$resource->getResourceType()},'{$resource->getFileName()|escape:"javascript"}','{$resource->getDescription()|escape:"javascript"}',false);">{$locale->tr("add_resource")}</a><br/>
{else}
- <a href="javascript:addResourceLink({$destination}, {$blog->getId()}, {$resource->getResourceType()}, '{$resource->getFileName()|escape:"javascript"}', '{$resource->getDescription()|escape:"javascript"}', false);">{$locale->tr("add_resource")}</a><br/>
+ <a href="javascript:addResourceLink({$destination},{$blog->getId()},{$resource->getResourceType()},'{$resource->getFileName()|escape:"javascript"}','{$resource->getDescription()|escape:"javascript"}',false);">{$locale->tr("add_resource")}</a><br/>
{/if}
{if $resource->hasPreview()}
{if $htmlarea}
- <a href="javascript:addHtmlareaLink({$destination}, {$blog->getId()}, {$resource->getResourceType()}, '{$resource->getFileName()|escape:"javascript"}', '{$resource->getDescription()|escape:"javascript"}', true);">{$locale->tr("add_resource_preview")}</a><br/>
+ <a href="javascript:addHtmlareaLink({$destination},{$blog->getId()},{$resource->getResourceType()},'{$resource->getFileName()|escape:"javascript"}','{$resource->getDescription()|escape:"javascript"}',true);">{$locale->tr("add_resource_preview")}</a><br/>
{else}
- <a href="javascript:addResourceLink({$destination}, {$blog->getId()}, {$resource->getResourceType()}, '{$resource->getFileName()|escape:"javascript"}', '{$resource->getDescription()|escape:"javascript"}', true);">{$locale->tr("add_resource_preview")}</a><br/>
+ <a href="javascript:addResourceLink({$destination},{$blog->getId()},{$resource->getResourceType()},'{$resource->getFileName()|escape:"javascript"}','{$resource->getDescription()|escape:"javascript"}',true);">{$locale->tr("add_resource_preview")}</a><br/>
{/if}
{/if}
</td>
More information about the pLog-svn
mailing list