Fixed db selection in shiwpic.php
authorKarsten Dambekalns <karsten.dambekalns@typo3.org>
Tue, 13 Sep 2005 14:35:16 +0000 (14:35 +0000)
committerKarsten Dambekalns <karsten.dambekalns@typo3.org>
Tue, 13 Sep 2005 14:35:16 +0000 (14:35 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@792 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/showpic.php

index 6e3afee..c83da8a 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@
 2005-09-13 Karsten Dambekalns <karsten@typo3.org>
 
        * Fixed the page is being generated page refreshing to the wrong page when query parameters are used.
+       * Fixed (part of) bug 1312 (showpic.php).
 
 2005-08-22 Martin Kutschker <martin.t.kutschker@blackbox.net>
 
index 75fa71f..d3c65c1 100755 (executable)
@@ -175,7 +175,8 @@ class SC_tslib_showpic {
                }
 
                // Need to connect to database, because this is used (typo3temp_db_tracking, cached image dimensions).
-                       $GLOBALS['TYPO3_DB']->sql_pconnect(TYPO3_db_host, TYPO3_db_username, TYPO3_db_password);
+               $GLOBALS['TYPO3_DB']->sql_pconnect(TYPO3_db_host, TYPO3_db_username, TYPO3_db_password);
+               $GLOBALS['TYPO3_DB']->sql_select_db(TYPO3_db);
 
                if (strstr($this->width.$this->height, 'm')) {$max='m';} else {$max='';}