diff options
author | Phie <phie@phie.ovh> | 2020-09-19 23:05:51 +0300 |
---|---|---|
committer | Phie <phie@phie.ovh> | 2020-09-19 23:05:51 +0300 |
commit | 60c5cc5c146fd6d97af3ac8db657909d0524868f (patch) | |
tree | 5603101b6144d2b57490e6ceb5bb31db3bf9b464 | |
parent | 519ab28c3f1adc0b9ac803fa837110f9d173e979 (diff) |
fix lower case text
-rw-r--r-- | lib/Misc/CacheManager.php | 4 | ||||
-rw-r--r-- | lib/Misc/NoteUtils.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Misc/CacheManager.php b/lib/Misc/CacheManager.php index 045421d..a619e0c 100644 --- a/lib/Misc/CacheManager.php +++ b/lib/Misc/CacheManager.php @@ -12,7 +12,7 @@ class CacheManager{ } public function addToCache($relativePath, $metadata, $lastmodfile, $text){ - $this->addToCacheFullPath($this->carnetFolder->getFullPath($relativePath), $metadata, $lastmodfile, $low_case_text); + $this->addToCacheFullPath($this->carnetFolder->getFullPath($relativePath), $metadata, $lastmodfile, $text); } public function addToCacheFullPath($fullPath, $metadata, $lastmodfile, $text){ @@ -74,7 +74,7 @@ class CacheManager{ private function recursiveAddToCache($carnetFolder, $node, $cache){ if($node instanceof \OCP\Files\Folder){ foreach($node->getDirectoryListing() as $inNode){ - echo $inNode->getPath(); + echo $inNode->getPath()."\n"; $this->recursiveAddToCache($carnetFolder, $inNode, $cache); } } else if(substr($node->getName(), -3) === "sqd"){ diff --git a/lib/Misc/NoteUtils.php b/lib/Misc/NoteUtils.php index 9c3b244..bbb3e50 100644 --- a/lib/Misc/NoteUtils.php +++ b/lib/Misc/NoteUtils.php @@ -81,7 +81,7 @@ class NoteUtils{ try{ $text = self::getTextFromHTML($zipFile->getEntryContents("index.html")); $meta['shorttext'] = self::getShortText($text); - $meta['lower_case_text'] = strtolower(self::removeAccents($text)); + $meta['text'] = strtolower(self::removeAccents($text)); $meta['media'] = array(); $meta['previews'] = array(); |