aboutsummaryrefslogtreecommitdiffstats
path: root/core/functions.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-06-21 19:18:35 +0200
committerThomas Lange <code@nerdmind.de>2021-06-21 19:18:35 +0200
commit3eaf909b1fa8b07c6d8b23aa2c2ed3ec4e1932b7 (patch)
tree9d3ba9fcb9162963e26edbb7bda0709aaf2c8a41 /core/functions.php
parentec424df850d6e5acc85d49ebd67703cf11f5a8d4 (diff)
downloadblog-3eaf909b1fa8b07c6d8b23aa2c2ed3ec4e1932b7.tar.gz
blog-3eaf909b1fa8b07c6d8b23aa2c2ed3ec4e1932b7.tar.xz
blog-3eaf909b1fa8b07c6d8b23aa2c2ed3ec4e1932b7.zip
Rename "attr" method of Item class to "get"
Diffstat (limited to 'core/functions.php')
-rw-r--r--core/functions.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/functions.php b/core/functions.php
index f674244..31a295b 100644
--- a/core/functions.php
+++ b/core/functions.php
@@ -78,12 +78,12 @@ function generateItemTemplateData(Item $Item): array {
$ATTR = $Item->getAttribute()->getAll(['password']);
$ATTR = array_change_key_case($ATTR, CASE_UPPER);
- $preparsed = parseContentTags($Item->attr('body'));
+ $preparsed = parseContentTags($Item->get('body'));
return [
'URL' => Application::getEntityURL($Item),
'GUID' => generatePseudoGUID($Item),
- 'ARGV' => parseArguments($Item->attr('argv')),
+ 'ARGV' => parseArguments($Item->get('argv')),
'ATTR' => $ATTR,
@@ -121,7 +121,7 @@ function generatePseudoGUID(Item $Entity) {
}
foreach($attr as $attribute) {
- $attributes[] = $Entity->attr($attribute);
+ $attributes[] = $Entity->get($attribute);
}
return sha1(implode('', $attributes));
@@ -175,7 +175,7 @@ function parseEntityContent(Item $Item): string {
$Parsedown = new Parsedown();
$Parsedown->setUrlsLinked(FALSE);
- $text = parseContentTags($Item->attr('body'));
+ $text = parseContentTags($Item->get('body'));
if(Application::get("$prefix.EMOTICONS")) {
$text = parseUnicodeEmoticons($text);