Search found 5 matches

by Kubik-Rubik
Wed Feb 10, 2016 7:41 am
Forum: Application Packaging SDK and Application Customizations
Topic: elgg - .htaccess always 0kb
Replies: 1
Views: 1539

elgg - .htaccess always 0kb

Hi! After the installation of the applicaton Elgg (version 1.12.8) the .htaccess is always completely empty. Even if I try to add content to it with a custom code call, after the installation process has finished, the file is empty again (not during the installation process, the .htaccess is modifie...
by Kubik-Rubik
Wed Feb 10, 2016 4:44 am
Forum: Application Packaging SDK and Application Customizations
Topic: osCommerce - Custom Code is never called
Replies: 1
Views: 1876

osCommerce - Custom Code is never called

Hey! My custom code for osCommerce is never called. I use the same trigger call as for other Apps and only the osCommerce code is not triggered. I also tried to use the code from the Editor but it also doesn't work. Can you please check it? Example of my code: class i_installer_customcode { function...
by Kubik-Rubik
Wed Feb 10, 2016 4:35 am
Forum: Application Packaging SDK and Application Customizations
Topic: Search/Replace (Edit File) does not work as expected
Replies: 3
Views: 2131

Re: Search/Replace (Edit File) does not work as expected

Hey Phil, I can verify the bug, the custom code is called twice. If I do the following "trick", then the result is as expected: static $run_once = false; if($run_once == false) { $o->sr('config.php', '#(\$CFG = new stdClass\(\);)#', "$1\n\n".'$CFG->slasharguments = false;'); $run_once = true; } I ho...
by Kubik-Rubik
Tue Feb 09, 2016 10:27 am
Forum: Application Packaging SDK and Application Customizations
Topic: Search/Replace (Edit File) does not work as expected
Replies: 3
Views: 2131

Re: Search/Replace (Edit File) does not work as expected

Update: I saw that the rule is applied twice instead of only once (custom code is called twice)! I use the following call trigger: $this->registerCustomCode("moodle", "all", "install", "last", "process", "moodleInstall"); What should I change so that the replacement is only executed once? Greetings
by Kubik-Rubik
Tue Feb 09, 2016 9:09 am
Forum: Application Packaging SDK and Application Customizations
Topic: Search/Replace (Edit File) does not work as expected
Replies: 3
Views: 2131

Search/Replace (Edit File) does not work as expected

Hi guys, I need to modify the configuration file of the application "Moodle", actually add a value to the file. The Search/Replace (Edit File) feature does not work as expected for me. Could you please check? My code for the addition is: $o->sr('config.php', '#(\$CFG = new stdClass\(\);)#', "$1\n\n"...