News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

strange global change on return from /administrator/includes/admin.php

Started by petr999, December 06, 2005, 16:16:25 PM

Previous topic - Next topic

petr999

Dear Friends!
I did throrough check before post this.
I don't mind why global $PHPSHOP_LANG gots truncated on exit from mosLoadAdminModule(). It doesn't contain the additional properties when exiting to administrator/templates/mambo_admin_blue/index.php
So, the Webmoney payment doesn't work since it is available on Russian only.
So I added this to the end of mosLoadAdminModule:
===
  if( $name == 'toolbar' ) {
    return $PHPSHOP_LANG;
  }
===
and modified administrator/templates/mambo_admin_blue/index.php this way:
===
$PHPSHOP_LANG=mosLoadAdminModule( 'toolbar' );
===
and this did the job. But it is very dirty solution..
PS. i am really sure it is the case. I checked this with echo()' debugging.
PPS. VM-1.0.1, mambo-4.5.2.3, PHP-4.4.1
PPPS. Just sorry if FAQ...