includes/functions.php
changeset 1379 5cbd678df965
parent 1373 851b91febb85
child 1381 6b25c6bfd246
equal deleted inserted replaced
1378:e58294b867c1 1379:5cbd678df965
  1001  */
  1001  */
  1002 
  1002 
  1003 function grinding_halt($t, $p)
  1003 function grinding_halt($t, $p)
  1004 {
  1004 {
  1005 	global $db, $session, $paths, $template, $plugins; // Common objects
  1005 	global $db, $session, $paths, $template, $plugins; // Common objects
       
  1006 	
       
  1007 	require_once(ENANO_ROOT . '/includes/template.php');
  1006 	
  1008 	
  1007 	if ( !defined('scriptPath') )
  1009 	if ( !defined('scriptPath') )
  1008 		require( ENANO_ROOT . '/config.php' );
  1010 		require( ENANO_ROOT . '/config.php' );
  1009 
  1011 
  1010 	if ( is_object($db) )
  1012 	if ( is_object($db) )