coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 PHPnuke/Postnuke Support => Topic started by: sigi on December 08, 2003, 12:49:53 PM

Title: not a bug, but a question...
Post by: sigi 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 ?
Title: not a bug, but a question...
Post by: DJMaze 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
Title: not a bug, but a question...
Post by: gtroll 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-*
Title: not a bug, but a question...
Post by: sigi on December 08, 2003, 08:23:50 PM
these funxctions are in the blockfiles of RC5 aka cpgnuke 1.21 ...