Ticket #941: config.php.patch

File config.php.patch, 0.9 kB (added by webrainstorm, 6 years ago)

Patch to config.php

  • config.php

    old new  
    167167 
    168168              // create a module_hook object for this module's page 
    169169              $module_hook = new moduleHook; 
    170               // populate object variables 
    171               $module_hook->install_hooks($itemid,$modkey,$item); 
    172                
    173               // include the module page 
    174               include "modules/{$modkey}/page.{$item}.php"; 
    175                
     170              // install hooks 
     171              $module_hook->install_hooks($modkey); 
     172 
    176173              // let hooking modules process the $_REQUEST 
    177174              $module_hook->process_hooks($itemid,$modkey,$item,$_REQUEST); 
    178175 
     176              // get html to be included in other modules 
     177              $module_hook->visualization_hooks($itemid,$modkey,$item); 
     178 
     179              // include the module page 
     180              include "modules/{$modkey}/page.{$item}.php"; 
     181               
    179182            } 
    180183          } 
    181184        }