Ver Fonte

Correction bug export RSS (encodage de &) + petits ajouts navigation dans la configuration

Marien Fressinaud há 13 anos atrás
pai
commit
876369d655

+ 1 - 1
app/views/configure/categorize.phtml

@@ -2,7 +2,7 @@
 
 <div class="post">
 	<form method="post" action="<?php echo _url ('configure', 'categorize'); ?>">
-		<legend>Gestion des catégories</legend>
+		<legend>Gestion des catégories - <a href="<?php echo _url ('configure', 'feed'); ?>">gestion des flux</a></legend>
 
 		<?php $i = 0; foreach ($this->categories as $cat) { $i++; ?>
 		<div class="form-group">

+ 8 - 4
app/views/configure/feed.phtml

@@ -14,6 +14,13 @@
 				<span class="control"><a target="_blank" href="<?php echo $this->flux->website (); ?>"><?php echo $this->flux->website (); ?></a></span>
 			</div>
 		</div>
+
+		<div class="form-group">
+			<label class="group-name">URL du flux</label>
+			<div class="group-controls">
+				<span class="control"><a target="_blank" href="<?php echo $this->flux->url (); ?>"><?php echo $this->flux->url (); ?></a></span>
+			</div>
+		</div>
 	
 		<div class="form-group">
 			<label class="group-name">Nombre d'articles</label>
@@ -22,8 +29,7 @@
 			</div>
 		</div>
 	
-		<?php if (!empty ($this->categories)) { ?>
-		<legend>Catégorie</legend>
+		<legend>Catégorie - <a href="<?php echo _url ('configure', 'categorize'); ?>">gestion</a></legend>
 		<div class="form-group">
 			<label class="group-name">Ranger dans une catégorie</label>
 			<div class="group-controls">
@@ -35,8 +41,6 @@
 				<?php } ?>
 			</div>
 		</div>
-	
-		<?php } ?>
 
 		<legend>Avancé</legend>
 		<div class="form-group">

+ 1 - 1
lib/lib_rss.php

@@ -89,7 +89,7 @@ function opml_export ($cats) {
 		$txt .= '<outline text="' . $cat['name'] . '">' . "\n";
 		
 		foreach ($cat['feeds'] as $feed) {
-			$txt .= "\t" . '<outline text="' . cleanText ($feed->name ()) . '" type="rss" xmlUrl="' . $feed->url () . '" htmlUrl="' . $feed->website () . '" />' . "\n";
+			$txt .= "\t" . '<outline text="' . cleanText ($feed->name ()) . '" type="rss" xmlUrl="' . htmlentities ($feed->url ()) . '" htmlUrl="' . htmlentities ($feed->website ()) . '" />' . "\n";
 		}
 		
 		$txt .= '</outline>' . "\n";