Beispiel #1
0
 /**
  * Reset global path variables
  */
 static function ClearDataFolder()
 {
     global $addonDataFolder, $addonCodeFolder;
     //deprecated
     global $addonRelativeCode, $addonRelativeData, $addonPathData, $addonPathCode, $addonFolderName, $addon_current_id, $addon_current_version;
     self::$current = array();
     $addonFolderName = false;
     $addonDataFolder = false;
     $addonCodeFolder = false;
     $addonRelativeCode = $addonRelativeData = $addonPathData = $addonPathCode = $addon_current_id = $addon_current_version = false;
     //Make the most recent addon folder or addon id in the stack the current addon
     if (count(self::$stack) > 0) {
         $info = array_pop(self::$stack);
         if ($info['folder']) {
             gpPlugin::SetDataFolder($info['folder']);
         } elseif ($info['id']) {
             $addon_current_id = $info['id'];
         }
     }
 }