Skip to content

Commit

Permalink
#82 Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bednee committed Mar 17, 2018
1 parent 3ddd264 commit 781866b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions Classes/Core/Translate.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,9 @@ public function cool2params($uri = '') {
case '_POST': $_POST = array_merge($_POST,$res); break;
default: $GLOBALS[$x] = $res;
}
} else
$_GET = $res;
} else {
$_GET = $res;
}

$this->uri = $res;

Expand Down
6 changes: 3 additions & 3 deletions Classes/Integration/CoolUri.php
Original file line number Diff line number Diff line change
Expand Up @@ -442,9 +442,9 @@ protected static function getTemplateCount($pagId)


$db = &$GLOBALS['TYPO3_DB'];
$temp = $db->exec_SELECTquery('COUNT(*) as num', 'sys_template',
'deleted=0 AND hidden=0 AND pid=' . $pagId . ' AND root=1' . $enable);
$countCache[$pagId] = (int)$db->sql_fetch_assoc($temp);
$temp = $db->exec_SELECTquery('COUNT(*) as num', 'sys_template', 'deleted=0 AND hidden=0 AND pid=' . $pagId . ' AND root=1' . $enable);
$row = $db->sql_fetch_assoc($temp);
$countCache[$pagId] = $row['num'];
return $countCache[$pagId];
}

Expand Down
2 changes: 1 addition & 1 deletion ext_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ CREATE TABLE link_cache (
id int(10) unsigned NOT NULL auto_increment,
params blob,
url char(255),
tstamp TIMESTAMP default CURRENT_TIMESTAMP,
tstamp TIMESTAMP NOT NULL default CURRENT_TIMESTAMP,
crdatetime datetime default NULL,
sticky tinyint(1) unsigned default 0,

Expand Down

0 comments on commit 781866b

Please sign in to comment.