Skip to content
Permalink
Browse files

fix oconly mark of unpublished caches; updates #1081

  • Loading branch information...
following5 committed Aug 16, 2017
1 parent 95a5b57 commit 5042fcc6ef5963b85f361874cd1e680a2f41f080
Showing with 6 additions and 2 deletions.
  1. +5 −1 htdocs/myhome.php
  2. +1 −1 htdocs/templates2/ocstyle/myhome.tpl
@@ -113,8 +113,12 @@
`caches`.`date_activate`,
`caches`.`status`,
`caches`.`wp_oc`,
`caches`.`type`
`caches`.`type`,
`ca`.`attrib_id` IS NOT NULL AS `oconly`
FROM `caches`
LEFT JOIN `caches_attributes` `ca`
ON `ca`.`cache_id`=`caches`.`cache_id`
AND `ca`.`attrib_id`=6
WHERE `user_id`='&1'
AND `caches`.`status` = 5
ORDER BY `date_activate` DESC, `caches`.`date_created` DESC",
@@ -179,7 +179,7 @@ function myHomeLoad()
</tr>
{foreach from=$notpublished item=notpublishedItem}
<tr>
<td>{include file="res_cacheicon_22.tpl" cachetype=$notpublishedItem.type} {include file="res_oconly.tpl" oconly=$cacheItem.oconly size="15x21"}</td>
<td>{include file="res_cacheicon_22.tpl" cachetype=$notpublishedItem.type} {include file="res_oconly.tpl" oconly=$notpublishedItem.oconly size="15x21"}</td>
<td>{$notpublishedItem.date_activate|date_format:$opt.format.datelong}</td>
<td>{include file="res_cachestatus.tpl" status=$notpublishedItem.status}</td>
<td><a href="viewcache.php?wp={$notpublishedItem.wp_oc}">{$notpublishedItem.name|escape}</a></td>

0 comments on commit 5042fcc

Please sign in to comment.
You can’t perform that action at this time.