]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/docgen.php
Merge remote-tracking branch 'upstream/master' into social-master
[quix0rs-gnu-social.git] / scripts / docgen.php
index ac0a5c83dcc380a9bab719506d4c498aecc759fd..9ca4d9dad5271640ca3a9b3975823451d72bc1d0 100755 (executable)
@@ -72,9 +72,9 @@ if ($plugin) {
 
 function getVersion()
 {
-    // define('STATUSNET_VERSION', '0.9.1');
+    // define('GNUSOCIAL_VERSION', '0.9.1');
     $source = file_get_contents(INSTALLDIR . '/lib/common.php');
-    if (preg_match('/^\s*define\s*\(\s*[\'"]STATUSNET_VERSION[\'"]\s*,\s*[\'"](.*)[\'"]\s*\)\s*;/m', $source, $matches)) {
+    if (preg_match('/^\s*define\s*\(\s*[\'"]GNUSOCIAL_VERSION[\'"]\s*,\s*[\'"](.*)[\'"]\s*\)\s*;/m', $source, $matches)) {
         return $matches[1];
     }
     return 'unknown';
@@ -95,7 +95,7 @@ var_dump($replacements);
 $template = file_get_contents(dirname(__FILE__) . '/doxygen.tmpl');
 $template = strtr($template, $replacements);
 
-$templateFile = tempnam(sys_get_temp_dir(), 'statusnet-doxygen');
+$templateFile = tempnam(common_get_temp_dir(), 'statusnet-doxygen');
 file_put_contents($templateFile, $template);
 
 $cmd = "doxygen " . escapeshellarg($templateFile);