[geeklog-cvs] Geeklog-1.x/system lib-plugins.php,1.128,1.129
Oliver
ospiess at qs1489.pair.com
Thu Aug 9 02:43:09 EDT 2007
Update of /usr/home/geeklog2/cvsroot/geeklog/Geeklog-1.x/system
In directory qs1489.pair.com:/tmp/cvs-serv34532
Modified Files:
lib-plugins.php
Log Message:
forwarding after save enablement for plugin config
Index: lib-plugins.php
===================================================================
RCS file: /usr/home/geeklog2/cvsroot/geeklog/Geeklog-1.x/system/lib-plugins.php,v
retrieving revision 1.128
retrieving revision 1.129
diff -C2 -d -r1.128 -r1.129
*** lib-plugins.php 9 Aug 2007 06:10:15 -0000 1.128
--- lib-plugins.php 9 Aug 2007 06:43:07 -0000 1.129
***************
*** 66,74 ****
*
*/
! function PLG_afterSaveSwtich($item_url, $plugin) {
global $_CONF;
! switch ($_CONF['aftersave']) {
case 'item':
! $url = $item_url;
break;
case 'list':
--- 66,79 ----
*
*/
! function PLG_afterSaveSwtich($target, $item_url, $plugin, $message = '') {
global $_CONF;
! if (isset($message)) {
! $msg = "msg=$message";
! } else {
! $msg = '';
! }
! switch ($target) {
case 'item':
! $url = $item_url . '&' . $msg;
break;
case 'list':
***************
*** 76,86 ****
break;
case 'home':
! $url = $_CONF['site_url'];
break;
case 'admin':
! $url = $_CONF['site_admin_url'] . '/moderation.php';
break;
case 'plugin':
! $url = $_CONF['site_url'] . "/$plugin/index.php";
break;
}
--- 81,93 ----
break;
case 'home':
! // the plugins messages are not available, use generic
! $url = $_CONF['site_url'] . "/index.php?msg=15";
break;
case 'admin':
! // the plugins messages are not available, use generic
! $url = $_CONF['site_admin_url'] . "/moderation.php?msg=15";
break;
case 'plugin':
! $url = $_CONF['site_url'] . "/$plugin/index.php?$msg";
break;
}
More information about the geeklog-cvs
mailing list