diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-06-04 18:17:11 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-06-04 18:17:11 -0400 |
commit | 200aebe1f4220d9d0b8f1b3807704300ced28f16 (patch) | |
tree | 8f987111c58e586c778d573217967d8269b2dc2b /templates/main.php | |
parent | 48ca4574197d3452189eb204324f724dadf6a888 (diff) |
fixes bug on status bitfield; tests storing the status in db
Diffstat (limited to 'templates/main.php')
-rw-r--r-- | templates/main.php | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/templates/main.php b/templates/main.php index e64ca8912..e410baa9a 100644 --- a/templates/main.php +++ b/templates/main.php @@ -1,11 +1,5 @@ <?php -$att = 0; -$prova = 0x2; -$att &= ~0x2; -print($att); - - $feedmapper = new OC_News_FeedMapper(); $foldermapper = new OC_News_FolderMapper(); @@ -35,6 +29,18 @@ foreach($items as $item) { } foreach($items as $item) { + echo $item->getTitle() . ' - '; + if ($item->isRead()) { + echo $l->t('Read'); + } + else { + echo $l->t('Unread'); + } + echo '<br>'; +} + + +foreach($items as $item) { echo $item->getStatus(); } |