diff options
| author | 2015-02-28 12:33:15 +0100 | |
|---|---|---|
| committer | 2015-02-28 12:33:15 +0100 | |
| commit | cdd653ce5305f043ee1db970c25303676c9f35c0 (patch) | |
| tree | 01a4c25e7e22b30b2099cf84b2031bad2f9a9566 /app/Models/Search.php | |
| parent | c59a702c32752493e8b3b73acf635ecb473b4d7e (diff) | |
| parent | e897afa7ccb2c625705bce25c003d9cf37179227 (diff) | |
Merge branch 'aledeg-change-filter' into dev
Diffstat (limited to 'app/Models/Search.php')
| -rw-r--r-- | app/Models/Search.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/Models/Search.php b/app/Models/Search.php index ef8fc883d..84688be2e 100644 --- a/app/Models/Search.php +++ b/app/Models/Search.php @@ -1,5 +1,7 @@ <?php +require_once(LIB_PATH . '/lib_date.php'); + /** * Contains a search from the search form. * @@ -9,7 +11,7 @@ class FreshRSS_Search { // This contains the user input string - private $raw_input; + private $raw_input = ''; // The following properties are extracted from the raw input private $intitle; private $min_date; @@ -34,6 +36,10 @@ class FreshRSS_Search { $input = $this->parseTagsSeach($input); $this->search = $this->cleanSearch($input); } + + public function __toString() { + return $this->getRawInput(); + } public function getRawInput() { return $this->raw_input; |
