From f7f407b6b6f50499058663ed4f10ee6ea762aeee Mon Sep 17 00:00:00 2001 From: ozhozh Date: Fri, 25 Jun 2010 17:41:18 +0000 Subject: [PATCH] Define default URLs to user dirs git-svn-id: http://yourls.googlecode.com/svn/trunk@420 12232710-3e20-11de-b438-597f59cd7555 --- includes/load-yourls.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/includes/load-yourls.php b/includes/load-yourls.php index 0fed343..65811a0 100644 --- a/includes/load-yourls.php +++ b/includes/load-yourls.php @@ -47,10 +47,18 @@ if( !defined('YOURLS_USERDIR') ) define('YOURLS_USERDIR', yourls_sanitize_filename( YOURLS_ABSPATH.'/user' ) ); +// URL of user directory +if( !defined('YOURLS_USERURL') ) + define('YOURLS_USERURL', YOURLS_SITE.'/user'); + // physical path of plugins directory if( !defined('YOURLS_PLUGINDIR') ) define('YOURLS_PLUGINDIR', yourls_sanitize_filename( YOURLS_USERDIR.'/plugins' ) ); +// URL of plugins directory +if( !defined('YOURLS_PLUGINURL') ) + define('YOURLS_PLUGINURL', YOURLS_USERURL.'/plugins'); + // physical path of pages directory if( !defined('YOURLS_PAGEDIR') ) define('YOURLS_PAGEDIR', yourls_sanitize_filename( YOURLS_ABSPATH.'/pages' ) ); -- 2.45.0