[geeklog-hg] geeklog: Fixed Story length being cut at 40 instead of 128

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Jul 20 14:46:31 EDT 2013


changeset 9217:7d74d79b126e
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/7d74d79b126e
user: Tom <websitemaster at cogeco.net>
date: Sat Jul 20 14:34:13 2013 -0400
description:
Fixed Story length being cut at 40 instead of 128

diffstat:

 public_html/javascript/title_2_id.js |  2 +-
 system/lib-story.php                 |  2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 3dbeddd40b59 -r 7d74d79b126e public_html/javascript/title_2_id.js
--- a/public_html/javascript/title_2_id.js	Sat Jul 20 10:28:57 2013 -0400
+++ b/public_html/javascript/title_2_id.js	Sat Jul 20 14:34:13 2013 -0400
@@ -49,7 +49,7 @@
 		nr = 35;
 	} else {
 		yondigit = "";
-		nr = 40;
+		nr = 128;
 	}
 	T2ID.value = urlID.slice(0, nr) + yondigit;
 
diff -r 3dbeddd40b59 -r 7d74d79b126e system/lib-story.php
--- a/system/lib-story.php	Sat Jul 20 10:28:57 2013 -0400
+++ b/system/lib-story.php	Sat Jul 20 14:34:13 2013 -0400
@@ -45,7 +45,7 @@
 }
 
 // this must be kept in sync with the actual size of 'sid' in the db ...
-define('STORY_MAX_ID_LENGTH', 40);
+define('STORY_MAX_ID_LENGTH', 128);
 
 // Story Record Options for the STATUS Field
 if (!defined ('STORY_ARCHIVE_ON_EXPIRE')) {



More information about the geeklog-cvs mailing list