Explorar el Código

Merge branch 'master' of https://github.com/unaio/una

AntonLV hace 7 años
padre
commit
051243adcf

+ 1 - 1
modules/boonex/nexus/classes/BxNexusAlerts.php

@@ -19,7 +19,7 @@ class BxNexusAlerts extends BxDolAlertsResponse
 
     public function response($o)
     {
-        if ('system' == $o->sUnit && 'page_output' == $o->sAction && 'sys_home' == $o->aExtras['page_name'] && !isLogged() && false !== strpos($_SERVER['HTTP_USER_AGENT'], 'UNANexus')) {
+        if ('system' == $o->sUnit && 'page_output' == $o->sAction && 'sys_home' == $o->aExtras['page_name'] && !isLogged() && false !== strpos($_SERVER['HTTP_USER_AGENT'], 'UNAMobileApp')) {
 
             // require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
     

+ 3 - 2
modules/boonex/timeline/install/sql/install.sql

@@ -148,7 +148,8 @@ CREATE TABLE IF NOT EXISTS `bx_timeline_links` (
   `title` varchar(255) NOT NULL,
   `text` text NOT NULL,
   `added` int(11) NOT NULL,
-  PRIMARY KEY (`id`)
+  PRIMARY KEY (`id`),
+  KEY `profile_id` (`profile_id`)
 );
 
 CREATE TABLE IF NOT EXISTS `bx_timeline_links2events` (
@@ -156,7 +157,7 @@ CREATE TABLE IF NOT EXISTS `bx_timeline_links2events` (
   `event_id` int(11) NOT NULL DEFAULT '0',
   `link_id` int(11) NOT NULL DEFAULT '0',
   PRIMARY KEY (`id`),
-  UNIQUE KEY `link` (`event_id`, `link_id`)
+  UNIQUE KEY `link` (`link_id`, `event_id`)
 );
 
 -- TABLES: REPOSTS