Browse Source

Path fixes so the plugin can find the files it needs.

tassium 22 years ago
parent
commit
f9af937b04
2 changed files with 3 additions and 3 deletions
  1. 1 1
      plugins/administrator/defines.php
  2. 2 2
      plugins/administrator/options.php

+ 1 - 1
plugins/administrator/defines.php

@@ -11,7 +11,7 @@
  * $Id$
  */
 
-require_once( '../functions/constants.php' );
+require_once( SM_PATH . 'functions/constants.php' );
 
 /* Define constants for the various option types. */
 define('SMOPT_TYPE_UNDEFINED', -1);

+ 2 - 2
plugins/administrator/options.php

@@ -157,8 +157,8 @@ foreach ( $defcfg as $key => $def ) {
     $newcfg[$key] = '';
 }
 
-$cfgfile = '../config/config.php';
-parseConfig( '../config/config_default.php' );
+$cfgfile = SM_PATH . 'config/config.php';
+parseConfig( SM_PATH . 'config/config_default.php' );
 parseConfig( $cfgfile );
 
 $colapse = array( 'Titles' => 'off',