[geeklog-cvs] Geeklog-1.x/plugins/staticpages services.inc.php, 1.8, 1.9

Dirk Haun dhaun at qs1489.pair.com
Fri Jan 4 13:36:33 EST 2008


Update of /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages
In directory qs1489.pair.com:/tmp/cvs-serv57928/plugins/staticpages

Modified Files:
	services.inc.php 
Log Message:
If we have to create a new ID, try using the 'Slug:' header


Index: services.inc.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages/services.inc.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** services.inc.php	3 Jan 2008 20:01:18 -0000	1.8
--- services.inc.php	4 Jan 2008 18:36:31 -0000	1.9
***************
*** 122,126 ****
      if (!$gl_edit) {
          if (strlen($args['sp_id']) > STATICPAGE_MAX_ID_LENGTH) {
!             $args['sp_id'] = COM_makeSid();
          }
      }
--- 122,126 ----
      if (!$gl_edit) {
          if (strlen($args['sp_id']) > STATICPAGE_MAX_ID_LENGTH) {
!             $args['sp_id'] = WS_makeId($args['slug'], STATICPAGE_MAX_ID_LENGTH);
          }
      }




More information about the geeklog-cvs mailing list