Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/YOURLS/YOURLS.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorozhozh <ozhozh@12232710-3e20-11de-b438-597f59cd7555>2012-08-20 23:24:31 +0400
committerozhozh <ozhozh@12232710-3e20-11de-b438-597f59cd7555>2012-08-20 23:24:31 +0400
commit9fbb4595af6ef07316bb1121d07a6414486bf86f (patch)
tree96ccbdf7e192e0682656454ad3dee465a1f67d91 /yourls-go.php
parentc5595b91aa998a60fb3994f00196810447ceb581 (diff)
Whitespaces, bitches!! Because, you know, CodingStandards.
git-svn-id: http://yourls.googlecode.com/svn/trunk@743 12232710-3e20-11de-b438-597f59cd7555
Diffstat (limited to 'yourls-go.php')
-rw-r--r--yourls-go.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/yourls-go.php b/yourls-go.php
index 0b9e2a11..ee1ed7ae 100644
--- a/yourls-go.php
+++ b/yourls-go.php
@@ -1,6 +1,6 @@
<?php
-define('YOURLS_GO', true);
-require_once( dirname(__FILE__).'/includes/load-yourls.php' );
+define( 'YOURLS_GO', true );
+require_once( dirname( __FILE__ ) . '/includes/load-yourls.php' );
// Variables should be defined in yourls-loader.php, if not try GET request (old behavior of yourls-go.php)
if( !isset( $keyword ) && isset( $_GET['id'] ) )
@@ -17,7 +17,7 @@ if ( !$keyword ) {
$url = yourls_get_keyword_longurl( $keyword );
// URL found
-if( !empty($url) ) {
+if( !empty( $url ) ) {
// Update click count in main table
$update_clicks = yourls_update_clicks( $keyword );
// Update detailed log for stats
@@ -31,10 +31,8 @@ if( !empty($url) ) {
} else {
// Do we have a page?
- if ( file_exists(YOURLS_PAGEDIR."/$keyword.php") ) {
- // Include YOURLS functions we've skipped, they might be of use
- require_once( YOURLS_INC.'/functions-html.php' );
- yourls_page($keyword);
+ if ( file_exists( YOURLS_PAGEDIR . "/$keyword.php" ) ) {
+ yourls_page( $keyword );
// Either reserved id, or no such id
} else {