Changeset 5982
- Timestamp:
- 05/19/08 23:41:23 (8 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
interface/owner/entry/visibility/index.php (modified) (1 diff)
-
lib/model/blog.entry.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/interface/owner/entry/visibility/index.php
r5285 r5982 39 39 } else { 40 40 $countResult = 1; 41 fireEvent('ChangeVisibility', $_GET['visibility'], $suri['id']);42 41 } 43 42 respond::PrintResult(array('error' => $temp, 'countSyndicated' => $countResult), false); -
trunk/lib/model/blog.entry.php
r5799 r5982 969 969 return true; 970 970 971 CacheControl::flushEntry($id);972 CacheControl::flushDBCache('entry');973 CacheControl::flushDBCache('comment');974 CacheControl::flushDBCache('trackback');975 971 if ($oldVisibility == 3) 976 972 syndicateEntry($id, 'delete'); … … 989 985 modified = UNIX_TIMESTAMP() 990 986 WHERE blogid = $blogid AND id = $id"); 991 if (!$result) 987 if (!$result) // Error. 992 988 return false; 993 if ($result == 0) 989 if ($result == 0) // Not changed. 994 990 return true; 995 991 … … 1002 998 updateEntriesOfCategory($blogid, $category); 1003 999 } 1000 CacheControl::flushEntry($id); 1001 CacheControl::flushDBCache('entry'); 1002 CacheControl::flushDBCache('comment'); 1003 CacheControl::flushDBCache('trackback'); 1004 fireEvent('ChangeVisibility', $visibility, $id); 1004 1005 return true; 1005 1006 }
