Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: not a bug, but a question...  (Read 3723 times)

0 Members and 1 Guest are viewing this topic.

sigi

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 68
    • http://www.allygally.de
not a bug, but a question...
« on: December 08, 2003, 12:49:53 pm »

Hi

in the Blocks there is always a function truncate_string(x) ... this function is repeated in every block, with a slight differencer in the function name ...

why not use the function truncate_string() thats found in include/functions.inc.php ? and if you think that files rather big to include in a block, why not
a) put the function itself in a seperate file or
b) put it in include/load.inc-php thats used by every blockfile ?
Logged
Siegfried Schlosser

Berlin, Germany

had a big Coppermine gallery with more than 250.000 pics  at
www.allygally.de, but due to juristical problems that is closed now ....
Now trying Coppermine 1.4.x at http://walexis.pytalhost.de/

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
not a bug, but a question...
« Reply #1 on: December 08, 2003, 01:47:39 pm »

functions.inc is a require_once by blocks and coppermine module so that function is always used
Logged
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
not a bug, but a question...
« Reply #2 on: December 08, 2003, 08:04:22 pm »

and the old truncate_stringxxx that was in the blocks was removed and added to function.inc.php so if the function is in your blocks please use the newest version of block-CPG-*

sigi

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 68
    • http://www.allygally.de
not a bug, but a question...
« Reply #3 on: December 08, 2003, 08:23:50 pm »

these funxctions are in the blockfiles of RC5 aka cpgnuke 1.21 ...
Logged
Siegfried Schlosser

Berlin, Germany

had a big Coppermine gallery with more than 250.000 pics  at
www.allygally.de, but due to juristical problems that is closed now ....
Now trying Coppermine 1.4.x at http://walexis.pytalhost.de/
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.