define('GNUSOCIAL_ENGINE_URL', 'https://www.gnu.org/software/social/');
define('GNUSOCIAL_BASE_VERSION', '1.2.0');
-define('GNUSOCIAL_LIFECYCLE', 'beta2'); // 'dev', 'alpha[0-9]+', 'beta[0-9]+', 'rc[0-9]+', 'release'
+define('GNUSOCIAL_LIFECYCLE', 'beta4'); // 'dev', 'alpha[0-9]+', 'beta[0-9]+', 'rc[0-9]+', 'release'
define('GNUSOCIAL_VERSION', GNUSOCIAL_BASE_VERSION . '-' . GNUSOCIAL_LIFECYCLE);
* and is available here: http://www.php-fig.org/psr/psr-0/
*/
spl_autoload_register(function($class){
- $class_path = preg_replace('{\\\\|_(?!.*\\\\)}', DIRECTORY_SEPARATOR, ltrim($class, '\\')).'.php';
- $file = INSTALLDIR.'/extlib/'.$class_path;
+ $class_base = preg_replace('{\\\\|_(?!.*\\\\)}', DIRECTORY_SEPARATOR, ltrim($class, '\\'));
+ $file = INSTALLDIR."/extlib/{$class_base}.php";
if (file_exists($file)) {
require_once $file;
return;
}
# Try if the system has this external library
- $file = '/usr/share/php/'.$class_path;
+ $file = "/usr/share/php/{$class_base}.php";
if (file_exists($file)) {
require_once $file;
return;