[geeklog-cvs] geeklog-1.3/system lib-plugins.php,1.17,1.18

geeklog-cvs-admin at lists.geeklog.net geeklog-cvs-admin at lists.geeklog.net
Sun May 11 14:28:57 EDT 2003


Update of /usr/cvs/geeklog/geeklog-1.3/system
In directory internal.geeklog.net:/tmp/cvs-serv7071/system

Modified Files:
	lib-plugins.php 
Log Message:
Plugins will have to handle comments themselves (mostly) from now on.


Index: lib-plugins.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/system/lib-plugins.php,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** lib-plugins.php	2 May 2003 04:05:35 -0000	1.17
--- lib-plugins.php	11 May 2003 18:28:55 -0000	1.18
***************
*** 205,226 ****
  
  /**
! * No clue what this does yet
  *
  * @param        string      $type       Plugin to have handle the comment
! * @param        string      $id         Comment ID maybe?!?
! * @param		string		$operation  "save" or "delete"
! * 
  */
! function PLG_handlePluginComment($type, $id,$operation='') 
  {
! 	$args[1] = $id;
! 	$args[2] = $operation;
  
! 	PLG_callFunctionForOnePlugin('plugin_handlecomment_' . $type, $args);
  }
  
  
  /**
! * User has reuested to create a comment for the plugin
  * Redirects user to comment form if initial comment for plugin record or returns
  * formated HTML including the Site footer and the comments 
--- 205,226 ----
  
  /**
! * Plugin should perform an operation on one of its comments.
  *
  * @param        string      $type       Plugin to have handle the comment
! * @param        string      $id         Comment ID
! * @param        string      $operation  "save" or "delete"
! * @return       string      COM_refresh() string to redirect to the proper URL
  */
! function PLG_handlePluginComment ($type, $id, $operation='') 
  {
!     $args[1] = $id;
!     $args[2] = $operation;
  
!     return PLG_callFunctionForOnePlugin('plugin_handlecomment_' . $type, $args);
  }
  
  
  /**
! * User has requested to create a comment for the plugin
  * Redirects user to comment form if initial comment for plugin record or returns
  * formated HTML including the Site footer and the comments 





More information about the geeklog-cvs mailing list