Update of /cvsroot/php-blog/serendipity/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18358/include
Modified Files:
functions_entries.inc.php functions_trackbacks.inc.php
Log Message:
* Remove Quicksave functionality, this is no longer needed because of iframes
* Add event hook to support new plugin controlling trackbacks
Index: functions_trackbacks.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/functions_trackbacks.inc.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- functions_trackbacks.inc.php 3 Dec 2004 09:34:51 -0000 1.6
+++ functions_trackbacks.inc.php 16 Dec 2004 15:03:29 -0000 1.7
@@ -328,6 +328,7 @@
$tmpid = serendipity_db_escape_string($id);
$checked_locations = array();
+ serendipity_plugin_api::hook_event('backend_trackbacks', $locations);
for ($i = 0, $j = count($locations); $i < $j; ++$i) {
if ($locations[$i][0] == '/') {
$locations[$i] = 'http' . (!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) != 'off' ? 's' : '') . '://' . $_SERVER['HTTP_HOST'] . $locations[$i];
Index: functions_entries.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/functions_entries.inc.php,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- functions_entries.inc.php 15 Dec 2004 20:02:45 -0000 1.25
+++ functions_entries.inc.php 16 Dec 2004 15:03:29 -0000 1.26
@@ -1142,7 +1142,6 @@
$hidden .= ' <input type="hidden" id="entryid" name="serendipity[id]" value="' . (isset($entry['id']) ? $entry['id'] : '') . '" />' . $n;
$hidden .= ' <input type="hidden" name="serendipity[timestamp]" value="' . (isset($entry['timestamp']) ? serendipity_serverOffsetHour($entry['timestamp']) : serendipity_serverOffsetHour(time())) . '" />' . $n;
$hidden .= ' <input type="hidden" name="serendipity[preview]" value="false" />';
- $hidden .= ' <input type="hidden" name="serendipity[quicksave]" value="false" />';
if (!empty($errMsg)) {
?>
@@ -1352,7 +1351,6 @@
</td>
<td align="right" rowspan="2" valign="middle" width="30%">
<input accesskey="p" type="submit" value="- <?php echo PREVIEW; ?> -" style="font-weight: bold; margin: 2px; width: 200px; text-align: center" onclick="document.forms['serendipityEntry'].elements['serendipity[preview]'].value='true';" /><br />
- <input accesskey="q" type="submit" value="- <?php echo QUICKSAVE; ?> -" style="font-size: x-small; margin: 2px; width: 200px; text-align: center" onclick="document.forms['serendipityEntry'].elements['serendipity[quicksave]'].value='true';" /><br />
<input accesskey="s" type="submit" onclick="return checkSave();" value="- <?php echo SAVE; ?> -" style="font-weight: bold; margin: 2px; width: 200px; text-align: center" />
</td>
</tr>
|