]> git.mxchange.org Git - friendica.git/commitdiff
add fulltext index on keywords, missed some directory localisations
authorFriendika <info@friendika.com>
Tue, 22 Mar 2011 23:34:12 +0000 (16:34 -0700)
committerFriendika <info@friendika.com>
Tue, 22 Mar 2011 23:34:12 +0000 (16:34 -0700)
boot.php
database.sql
mod/directory.php
update.php

index 9bac155b9a953a40dfe4c83e9b7188f73878bc3f..3bec6c48f53093b965fd999140bff4c35f56a7bb 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -4,7 +4,7 @@ set_time_limit(0);
 
 define ( 'FRIENDIKA_VERSION',      '2.1.926' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.1'  );
-define ( 'DB_UPDATE_VERSION',      1044   );
+define ( 'DB_UPDATE_VERSION',      1045   );
 
 define ( 'EOL',                    "<br />\r\n"     );
 define ( 'ATOM_TIME',              'Y-m-d\TH:i:s\Z' );
index 0a718c8c22713affb4c8c2328939e872adc8293b..114f0d3d949d1b374b62bd28e433ab9762e0ea95 100644 (file)
@@ -315,7 +315,9 @@ CREATE TABLE IF NOT EXISTS `profile` (
   `thumb` char(255) NOT NULL,
   `publish` tinyint(1) NOT NULL DEFAULT '0',
   `net-publish` tinyint(1) NOT NULL DEFAULT '0',
-  PRIMARY KEY (`id`)
+  PRIMARY KEY (`id`),
+  FULLTEXT KEY `pub_keywords` (`pub_keywords`),
+  FULLTEXT KEY `prv_keywords` (`prv_keywords`)
 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8;
 
 -- --------------------------------------------------------
index 825e2a375f7e59509f54507e0e3c5e552b2350a3..72c30fb3178da115b97d58b968c00fd74bdf6c02 100644 (file)
@@ -86,10 +86,10 @@ function directory_content(&$a) {
                        }
                        if(strlen($rr['dob'])) {
                                if(($years = age($rr['dob'],$rr['timezone'],'')) != 0)
-                                       $details .= "<br />Age: $years" ; 
+                                       $details .= '<br />' . t('Age: ') . $years ; 
                        }
                        if(strlen($rr['gender']))
-                               $details .= '<br />Gender: ' . $rr['gender'];
+                               $details .= '<br />' . t('Gender: ') . $rr['gender'];
 
                        $entry = replace_macros($tpl,array(
                                '$id' => $rr['id'],
@@ -115,7 +115,7 @@ function directory_content(&$a) {
 
        }
        else
-               notice("No entries (some entries may be hidden).");
+               notice( t("No entries \x28some entries may be hidden\x29.") . EOL);
 
        return $o;
 }
\ No newline at end of file
index 9f94cd511b6e59d48f319fe2bef56fb4a71d8455..3672b2bfee88388ec6a355487ec13c96db09b6ec 100644 (file)
@@ -410,3 +410,11 @@ function update_1042() {
 function update_1043() {
        q("ALTER TABLE `user` ADD `blockwall` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `blocked` ");
 }
+
+function update_1044() {
+       q("ALTER TABLE `profile` ADD FULLTEXT ( `pub_keywords` ) ");
+       q("ALTER TABLE `profile` ADD FULLTEXT ( `prv_keywords` ) ");
+}
+
+
+       
\ No newline at end of file