Skip to content

Commit

Permalink
Merge remote branch 'testing' into local one
Browse files Browse the repository at this point in the history
	Various clean-ups
Updated README.md to clarify webserver configuration
swapped out some dusty code
  • Loading branch information
fredl99 committed Feb 1, 2017
1 parent 378a31b commit 29bedc6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Upload & Shorten
Plugin URI: https://github.com/fredl99/YOURLS-Upload-and-Shorten
Description: Upload a file and create a short-YOURL for it in one step.
Version: 1.4/testing
Version: 1.3.1/stable
Author: Fredl
Author URI: https://github.com/fredl99
*/
Expand Down Expand Up @@ -155,7 +155,8 @@ function my_upload_and_shorten_save_files() {

case 'randomized': {
// make up a random name for the uploaded file
// see http://www.mattytemple.com/projects/yourls-share-files/?replytocom=26686#respond
// see http://www.mattytemple.com/projects/yourls-share-files/?replytocom=26686#respond (seems vanished...)
// (seems vanished...)
$my_filename = substr(md5($my_upload_filename.strtotime("now")), 0, 12);
// end randomize filename
}
Expand Down

0 comments on commit 29bedc6

Please sign in to comment.