From 1a22a87fb1b1fcb61d201de399c33c2185dc1f6e Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Mon, 20 Oct 2014 18:45:22 +0200 Subject: Use FreshRSS_Context::$conf only - Replace $this->view->conf in controllers - Replace $this->conf in views --- app/views/configure/archiving.phtml | 10 ++++----- app/views/configure/display.phtml | 30 +++++++++++++------------- app/views/configure/queries.phtml | 4 ++-- app/views/configure/reading.phtml | 42 ++++++++++++++++++------------------- app/views/configure/sharing.phtml | 6 +++--- app/views/configure/shortcut.phtml | 2 +- 6 files changed, 47 insertions(+), 47 deletions(-) (limited to 'app/views/configure') diff --git a/app/views/configure/archiving.phtml b/app/views/configure/archiving.phtml index f469d343c..410434599 100644 --- a/app/views/configure/archiving.phtml +++ b/app/views/configure/archiving.phtml @@ -10,7 +10,7 @@
- +  
@@ -19,7 +19,7 @@
()
@@ -34,13 +34,13 @@ 36000 => '10h', 43200 => '12h', 64800 => '18h', 86400 => '1d', 129600 => '1.5d', 172800 => '2d', 259200 => '3d', 345600 => '4d', 432000 => '5d', 518400 => '6d', 604800 => '1wk', -1 => '∞') as $v => $t) { - echo ''; - if ($this->conf->ttl_default == $v) { + echo ''; + if (FreshRSS_Context::$conf->ttl_default == $v) { $found = true; } } if (!$found) { - echo ''; + echo ''; } ?> () diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml index 1614bd56b..69205fa93 100644 --- a/app/views/configure/display.phtml +++ b/app/views/configure/display.phtml @@ -10,9 +10,9 @@
@@ -24,7 +24,7 @@ conf->topline_read ? ' checked="checked"' : ''; ?> /> - conf->topline_favorite ? ' checked="checked"' : ''; ?> /> + topline_read ? ' checked="checked"' : ''; ?> /> + topline_favorite ? ' checked="checked"' : ''; ?> /> - conf->topline_date ? ' checked="checked"' : ''; ?> /> - conf->topline_link ? ' checked="checked"' : ''; ?> /> + topline_date ? ' checked="checked"' : ''; ?> /> + topline_link ? ' checked="checked"' : ''; ?> /> - conf->bottomline_read ? ' checked="checked"' : ''; ?> /> - conf->bottomline_favorite ? ' checked="checked"' : ''; ?> /> - conf->bottomline_sharing ? ' checked="checked"' : ''; ?> /> - conf->bottomline_tags ? ' checked="checked"' : ''; ?> /> - conf->bottomline_date ? ' checked="checked"' : ''; ?> /> - conf->bottomline_link ? ' checked="checked"' : ''; ?> /> + bottomline_read ? ' checked="checked"' : ''; ?> /> + bottomline_favorite ? ' checked="checked"' : ''; ?> /> + bottomline_sharing ? ' checked="checked"' : ''; ?> /> + bottomline_tags ? ' checked="checked"' : ''; ?> /> + bottomline_date ? ' checked="checked"' : ''; ?> /> + bottomline_link ? ' checked="checked"' : ''; ?> />
@@ -95,7 +95,7 @@
- +
diff --git a/app/views/configure/queries.phtml b/app/views/configure/queries.phtml index e778ce078..994dfc11b 100644 --- a/app/views/configure/queries.phtml +++ b/app/views/configure/queries.phtml @@ -6,7 +6,7 @@
- conf->queries as $key => $query) { ?> + queries as $key => $query) { ?>
- conf->queries) > 0) { ?> + queries) > 0) { ?>
diff --git a/app/views/configure/reading.phtml b/app/views/configure/reading.phtml index c8685acf3..ef775b4b1 100644 --- a/app/views/configure/reading.phtml +++ b/app/views/configure/reading.phtml @@ -9,7 +9,7 @@
- +
@@ -18,8 +18,8 @@
@@ -28,9 +28,9 @@
@@ -39,9 +39,9 @@
@@ -49,7 +49,7 @@
@@ -58,7 +58,7 @@
@@ -68,7 +68,7 @@
@@ -78,7 +78,7 @@
@@ -88,7 +88,7 @@
@@ -98,7 +98,7 @@
@@ -108,7 +108,7 @@
@@ -119,19 +119,19 @@
@@ -141,7 +141,7 @@
diff --git a/app/views/configure/sharing.phtml b/app/views/configure/sharing.phtml index 09c1e6f40..ef5e85a0c 100644 --- a/app/views/configure/sharing.phtml +++ b/app/views/configure/sharing.phtml @@ -15,8 +15,8 @@
'> - conf->sharing as $key => $sharing): ?> - conf->shares[$sharing['type']]; ?> + sharing as $key => $sharing): ?> + shares[$sharing['type']]; ?>