[Phpslash-devel] Multi-lingual/Multi-skin Blocks
Brought to you by:
joestewart,
nhruby
From: Mike G. <mi...@op...> - 2003-07-29 21:28:22
|
Hello Again, Stumbled across another issue I thought I'd bring up with the psl development team. Last time I talked to you folks about this the decision was that multilingual functionality just isn't there for the blocks.. I was looking at this for Back-End and wondered about this chunk of code from within the storeParsed data function of the Block.class file: $block_options = $this->block_info["block_options"]; $lang = $this->psl['lang']; $skin = $this->psl['skin']; $block_options['cache_data'][$lang][$skin]['cache_data'] = $this->block_info["cache_data"]; $block_options['cache_data'][$lang][$skin]['last_update'] = time(); $serial_options = addslashes(serialize($block_options)); /* Store in db */ $query = "UPDATE psl_block SET block_options = '$serial_options' WHERE id = '$id'"; 1st question is is this working anywhere? Are different skins & languages being effectively cached within the block options? Wouldn't it just make more sense to move this into a psl_blockCache or psl_blockText table? Since most of the mysql is in Block.class it isn't that hard to make the change.. Mike -- Mike Gifford, OpenConcept Consulting Free Software for Social Change -> http://www.openconcept.ca Site Launch - Make Every Vote Count - http://www.fairvotecanada.org The cruelest lies are often told in silence. -- Robert L Stevenson |