Skip to content

update in dependent plugins the deprecated functions #241

@Klap-in

Description

@Klap-in

Reminder.

Since #236

tagadd/action.php
note: old syntax, deprecated already earlier..

95 	        $Htag= $this->loadHelper('tag');
96 
97 	        $links=$Htag->tagLinks($chked_tags);
98 	        p_set_metadata($ID,array('subject'=>$chked_tags));
99 	        if(!$Htf->isNewTagVersion()) {
100 	            $Htag->_updateTagIndex($ID,$chked_tags);
101 	        }

ckgdoku/action/tagapi.php

64      resolve_pageID($this->tagplugin->namespace, $id, $exists);
65       $name = p_get_first_heading($id, false);

tagentry/action.php

108     /**
109      * list all tags from the topic index.
110      * (requires newer version of the tag plugin)
111      *
112      * @param $thlp  pointer to tag plugin's helper
113      * @return array list of tag names, sorted by frequency
114      */
115     function _gettags( &$thlp ) {
116         $data = array();
117         if ( !is_array( $thlp->topic_idx ) )
118             return $data;
119         foreach ( $thlp->topic_idx as $k => $v ) {
120             if ( !is_array( $v ) || empty( $v ) || ( !trim( $v[0] ) ) )
121                 continue;
122             $data[$k] = count( $v );
123         }
124         arsort( $data );
125         return ( array_keys( $data ) );
126     }


231             $tagplugin = plugin_load( 'helper', 'tag' );
232             if ( plugin_isdisabled( 'tag' ) || !$tagplugin ) {
233                 msg( 'The Tag Plugin must be installed to display tagentry.', -1 );
234                 return $this->clipstring( $tagname );
235             }
236 
237             $id    = $tagname;
238             $exist = false;
239             resolve_pageID( $tagplugin->namespace, $id, $exist );
240             if ( $exist ) {
241                 return p_get_first_heading( $id, false );
242             }

cloud/syntax.php

113                     $exists = false;
114                     resolve_pageID($tag->namespace, $id, $exists);
115                     if($exists) {

tagsections/helper.php

104     private function _checkTagInNamespace($tag,$ns,$acl_safe=true){
105         $Htag = $this->Htag;
106         if(!$Htag) return false;
107         if($ns == '') return true;
108         $indexer = idx_get_indexer();
109         $pages = $indexer->lookupKey('subject', $tag, array($this, '_tagCompare'));
110         foreach($page_r as $page){
111             if($Htag->_isVisible($page,$ns)) {
112                 if (!$acl_safe) return true;
113                 $perm = auth_quickaclcheck($page);
114                 if (!$perm < AUTH_READ) {
115                     return true;
116                 }
117             }
118 
119         }
120         return false;

cumulus/syntax.php

141                 resolve_pageID($tag->namespace, $id, $exists);

webdav/core/Plugin/DokuWiki.php

83                 if ($tag_helper = plugin_load('helper', 'tag')) {
84                     $properties[self::DW_TAGS_PROPERTY] = join(',', $tag_helper->_getSubjectMetadata($dw_id));
85                 }

include/action.php

113                 if ($tag_helper) {
114                     if (isset($meta['subject']))  {
115                         $event->data['metadata']['subject'] = $tag_helper->_cleanTagList($meta['subject']);
116                     } else {
117                         $event->data['metadata']['subject'] = array();
118                     }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions