Changeset 158

Show
Ignore:
Timestamp:
01/03/08 13:36:59 (5 years ago)
Author:
d0nut
Message:

0.5.1 released

  • added sql-index
  • utf8 collation changed to utf8_bin
  • icons converted to png8
Location:
taggingreloaded
Files:
1 added
10 modified

Legend:

Unmodified
Added
Removed
  • taggingreloaded/files/lib/util/TaggingReloadedUtil.class.php

    r110 r158  
    1010class TaggingReloadedUtil { 
    1111        protected static $stopwordList; 
     12        protected static $systemTaggerUserID = 0; // unsigned int 
    1213 
    1314        /** 
     
    7071 
    7172                // find words beginning with capitals 
    72                 // TODO: does this make any sense? just germany has uses big capitals!? what about the umlauts? 
    73                 preg_match_all('/([A-Z]\w+)/e', $text, $words); 
     73                // TODO: does this make any sense? just germany uses big capitals!? what about the umlauts? 
     74                preg_match_all('/([A-Z][\wÀöÌÄÖÜß]+)/e', $text, $words); 
    7475 
    7576                // lower them 
     
    114115                if(count($tags) == 0) return;            
    115116 
    116                 $userID = $userID === null ? WCF::getUser()->userID : -1; 
     117                $userID = $userID === null ? WCF::getUser()->userID : self::$systemTaggerUserID; 
    117118         
    118119                // INSERT tags           
  • taggingreloaded/install.sql

    r102 r158  
    33  taggingID int(10) unsigned NOT NULL, 
    44  userID int(10) unsigned NOT NULL, 
    5   tag varchar(96) NOT NULL DEFAULT '', 
     5  tag varchar(96) collate utf8_bin NOT NULL DEFAULT '', 
    66  weight smallint(2) unsigned NOT NULL, 
    7   PRIMARY KEY (taggingID, userID, tag) 
    8 ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 
     7  PRIMARY KEY (taggingID, userID, tag), 
     8  INDEX tag (tag) 
     9) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE utf8_bin; 
    910 
    1011DROP TABLE IF EXISTS wcf1_taggingreloaded_stopwords; 
  • taggingreloaded/optionals/de.easy-coding.wbb.taggingreloaded/files/lib/acp/action/UpdateTaggingReloadedAction.class.php

    r126 r158  
    5959        public function execute() { 
    6060                parent::execute(); 
     61                 
     62                if($this->loop == 0) { 
     63                        // dead connections? 
     64                        $sql = "DELETE FROM             wbb".WBB_N."_taggingreloaded,  
     65                                                        wcf".WCF_N."_taggingreloaded 
     66                                USING                   wbb".WBB_N."_taggingreloaded 
     67                                NATURAL LEFT JOIN       wcf".WCF_N."_taggingreloaded 
     68                                WHERE                   ISNULL(postID)"; 
     69                        WCF::getDB()->sendQuery($sql); 
     70                } 
    6171 
    6272                $text = ''; 
  • taggingreloaded/package.xml

    r107 r158  
    55                <packagename>Tagging Reloaded</packagename> 
    66                <packagedescription>Tagging Reloaded does not mean just tagging. It's much more!</packagedescription> 
    7                 <version>0.5.0</version> 
     7                <version>0.5.1</version> 
    88                <date>DATE</date> 
    99                <plugin>com.woltlab.wcf</plugin> 
     
    3838        </instructions> 
    3939         
     40        <instructions type="update" fromversion="0.5.0"> 
     41                <files>files.tar</files> 
     42                <sql>update.sql</sql> 
     43        </instructions> 
     44         
    4045        <instructions type="update" fromversion="0.4.3"> 
    4146                <files>files.tar</files> 
     47                <sql>update.sql</sql> 
    4248        </instructions> 
    4349         
     
    4551                <files>files.tar</files> 
    4652                <templates>templates.tar</templates> 
     53                <sql>update.sql</sql> 
    4754                <languages languagecode="de">de.xml</languages> 
    4855                <languages languagecode="de-informal">de-informal.xml</languages> 
     
    5461                <files>files.tar</files> 
    5562                <templates>templates.tar</templates> 
     63                <sql>update.sql</sql> 
    5664                <languages languagecode="de">de.xml</languages> 
    5765                <languages languagecode="de-informal">de-informal.xml</languages>