فهرست منبع

Fix issue #111 : index httpAuth ajouté (OPML)

Il manquait cet index lors de l'ajout d'un flux par import OPML, c'est
ok maintenant
Marien Fressinaud 12 سال پیش
والد
کامیت
5b313ecdcb
2فایلهای تغییر یافته به همراه4 افزوده شده و 22 حذف شده
  1. 2 1
      app/controllers/feedController.php
  2. 2 21
      app/models/Entry.php

+ 2 - 1
app/controllers/feedController.php

@@ -246,7 +246,8 @@ class feedController extends ActionController {
 					'name' => $feed->name (),
 					'name' => $feed->name (),
 					'website' => $feed->website (),
 					'website' => $feed->website (),
 					'description' => $feed->description (),
 					'description' => $feed->description (),
-					'lastUpdate' => 0
+					'lastUpdate' => 0,
+					'httpAuth' => $feed->httpAuth ()
 				);
 				);
 
 
 				// ajout du flux que s'il n'est pas déjà en BDD
 				// ajout du flux que s'il n'est pas déjà en BDD

+ 2 - 21
app/models/Entry.php

@@ -14,7 +14,6 @@ class Entry extends Model {
 	private $is_public;
 	private $is_public;
 	private $feed;
 	private $feed;
 	private $tags;
 	private $tags;
-	private $notes;
 	private $lastUpdate;
 	private $lastUpdate;
 
 
 	public function __construct ($feed = '', $guid = '', $title = '', $author = '', $content = '',
 	public function __construct ($feed = '', $guid = '', $title = '', $author = '', $content = '',
@@ -31,7 +30,6 @@ class Entry extends Model {
 		$this->_isPublic ($is_public);
 		$this->_isPublic ($is_public);
 		$this->_feed ($feed);
 		$this->_feed ($feed);
 		$this->_lastUpdate ($pubdate);
 		$this->_lastUpdate ($pubdate);
-		$this->_notes ('');
 		$this->_tags (array ());
 		$this->_tags (array ());
 	}
 	}
 
 
@@ -96,17 +94,6 @@ class Entry extends Model {
 			return $this->tags;
 			return $this->tags;
 		}
 		}
 	}
 	}
-	public function notes ($raw = true, $parse_tags = true) {
-		if ($raw) {
-			return $this->notes;
-		} else {
-			if($parse_tags) {
-				return parse_tags (bbdecode ($this->notes));
-			} else {
-				return bbdecode ($this->notes);
-			}
-		}
-	}
 	public function lastUpdate ($raw = false) {
 	public function lastUpdate ($raw = false) {
 		if ($raw) {
 		if ($raw) {
 			return $this->lastUpdate;
 			return $this->lastUpdate;
@@ -165,9 +152,6 @@ class Entry extends Model {
 
 
 		$this->tags = $value;
 		$this->tags = $value;
 	}
 	}
-	public function _notes ($value) {
-		$this->notes = $value;
-	}
 	public function _lastUpdate ($value) {
 	public function _lastUpdate ($value) {
 		if (is_int (intval ($value))) {
 		if (is_int (intval ($value))) {
 			$this->lastUpdate = $value;
 			$this->lastUpdate = $value;
@@ -231,8 +215,7 @@ class Entry extends Model {
 			'is_public' => $this->isPublic (),
 			'is_public' => $this->isPublic (),
 			'id_feed' => $this->feed (),
 			'id_feed' => $this->feed (),
 			'lastUpdate' => $this->lastUpdate (true),
 			'lastUpdate' => $this->lastUpdate (true),
-			'tags' => $this->tags (true),
-			'annotation' => $this->notes ()
+			'tags' => $this->tags (true)
 		);
 		);
 	}
 	}
 }
 }
@@ -578,7 +561,6 @@ class HelperEntry {
 			$dao['is_public']
 			$dao['is_public']
 		);
 		);
 
 
-		$entry->_notes ($dao['annotation']);
 		$entry->_lastUpdate ($dao['lastUpdate']);
 		$entry->_lastUpdate ($dao['lastUpdate']);
 		$entry->_tags ($dao['tags']);
 		$entry->_tags ($dao['tags']);
 
 
@@ -606,8 +588,7 @@ class HelperEntry {
 			$word = strtolower ($word);
 			$word = strtolower ($word);
 			if (strpos (strtolower ($dao['title']), $word) === false &&
 			if (strpos (strtolower ($dao['title']), $word) === false &&
 			    strpos (strtolower ($dao['content']), $word) === false &&
 			    strpos (strtolower ($dao['content']), $word) === false &&
-			    strpos (strtolower ($dao['link']), $word) === false &&
-			    strpos (strtolower ($dao['annotation']), $word) === false) {
+			    strpos (strtolower ($dao['link']), $word) === false) {
 				return false;
 				return false;
 			}
 			}
 		}
 		}