File tree 3 files changed +8
-11
lines changed
3 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -47,15 +47,7 @@ private static function getEntityId($entity)
47
47
//\XF::logError('Can not get post/resource id: $entity is not defined.');
48
48
return 0 ;
49
49
}
50
- if ($ entity instanceof \XF \Entity \Post)
51
- return $ entity ->post_id ;
52
- if ($ entity instanceof \XF \Entity \ConversationMessage)
53
- return $ entity ->message_id ;
54
- if (class_exists ('\XFRM\Entity\ResourceUpdate ' )
55
- && $ entity instanceof \XFRM \Entity \ResourceUpdate)
56
- return $ entity ->resource_id ;
57
- \XF ::logError ('Can not get post/resource id: unsupported entity type. ' );
58
- return 0 ;
50
+ return $ entity ->getEntityId ();
59
51
}
60
52
61
53
private static function getNumByDepth ($ depth , $ override = -1 )
Original file line number Diff line number Diff line change 2
2
"legacy_addon_id" : " " ,
3
3
"title" : " [Inforge] PostTOC" ,
4
4
"description" : " Add BBCode to support the creation of a table of contents in posts." ,
5
- "version_id" : 1000070 ,
6
- "version_string" : " 1.0.0 " ,
5
+ "version_id" : 1000170 ,
6
+ "version_string" : " 1.0.1 " ,
7
7
"dev" : " Inforge" ,
8
8
"dev_url" : " https://www.inforge.net" ,
9
9
"faq_url" : " https://github.com/InforgeNet/PostTOC/wiki/Frequently-Asked-Questions" ,
Original file line number Diff line number Diff line change 4
4
],
5
5
"minify" : [
6
6
" js/inforge/posttoc/toc-renderer.js"
7
+ ],
8
+ "exec" : [
9
+ " mv _build/upload/src/addons/Inforge/PostTOC/README.md _build/" ,
10
+ " mv _build/upload/src/addons/Inforge/PostTOC/CONTRIBUTING.md _build/" ,
11
+ " mv _build/upload/src/addons/Inforge/PostTOC/LICENSE _build/"
7
12
]
8
13
}
You can’t perform that action at this time.
0 commit comments