Panel
PowerQA is a state of the art discussion software that makes online discussions fun. It's simple, fast, and powerful.
Fighter
webmaster
+1 vote
Notice 126 views

Basic global constants optimized

In windows, folder separeter ("\") are mixed in absolute path. In usually no problem. But problem will occur belong to processing. For example, when comparing with unix path ("/"). Therefore, I optimized below basic constants in qa-include/qa-base.php.

  • QA_BASE_DIR
  • QA_INCLUDE_DIR
  • QA_LANG_DIR
  • QA_THEME_DIR
  • QA_PLUGIN_DIR
//define('QA_BASE_DIR', dirname(dirname(__FILE__)).'/'); // try out best if not set in index.php or qa-index.php - won't work with symbolic links
define('QA_BASE_DIR', str_replace("\\", "/", dirname(dirname(__FILE__))).'/'); // try out best if not set in index.php or qa-index.php - won't work with symbolic links

 

image

by webmaster asked Nov 16, 2015 in Core

Please log in or register to add a comment.

Please log in or register to answer this question.

Welcome to PowerQA. PowerQA is a new discussion software (not OSS). Here is a community for PowerQA developers. Current stable version is V1.9.4. It is enhanced day by day.

Statistics

  • 338 questions
  • 276 answers
  • 480 comments
  • 100 users

Post types

...