[Mapbender-commits] r8208 - trunk/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Nov 17 07:36:49 EST 2011
Author: armin11
Date: 2011-11-17 04:36:49 -0800 (Thu, 17 Nov 2011)
New Revision: 8208
Modified:
trunk/mapbender/http/classes/class_wms.php
Log:
dont show shortend abstracts in tweet
Modified: trunk/mapbender/http/classes/class_wms.php
===================================================================
--- trunk/mapbender/http/classes/class_wms.php 2011-11-17 10:27:14 UTC (rev 8207)
+++ trunk/mapbender/http/classes/class_wms.php 2011-11-17 12:36:49 UTC (rev 8208)
@@ -1681,9 +1681,9 @@
//new WMS
$twitter_wms = new twitter();
//combine text for tweet
- $tweetText = "NEW WMS: " . $this->wms_title." (".$myWMS.") ".self::getWmsMetadataUrl($myWMS)." ".$this->wms_abstract;
+ $tweetText = "NEW WMS: " . $this->wms_title." (".$myWMS.") ".self::getWmsMetadataUrl($myWMS);
//reduce to 140 chars
- $tweetText = substr($tweetText, 0, 136)." ...";
+ $tweetText = substr($tweetText, 0, 136);
//push to twitter
$result = $twitter_wms->postTweet($tweetText);
}
@@ -1768,9 +1768,9 @@
//new LAYER
$twitter_layer = new twitter();
//combine text for tweet
- $tweetText = "NEW LAYER: " . $currentLayer->layer_title." (".$currentLayer->db_id.") ".self::getLayerMetadataUrl($currentLayer->db_id)." ".$currentLayer->layer_abstract;
+ $tweetText = "NEW LAYER: " . $currentLayer->layer_title." (".$currentLayer->db_id.") ".self::getLayerMetadataUrl($currentLayer->db_id);
//reduce to 140 chars
- $tweetText = substr($tweetText, 0, 136)." ...";
+ $tweetText = substr($tweetText, 0, 136);
//push to twitter
$result = $twitter_layer->postTweet($tweetText);
}
@@ -2718,18 +2718,18 @@
//updated WMS
$twitter_wms = new twitter();
//combine text for tweet
- $tweetText = "UPDATED WMS: " . $this->wms_title." (".$myWMS.") ".self::getWmsMetadataUrl($myWMS)." ".$this->wms_abstract;
+ $tweetText = "UPDATED WMS: " . $this->wms_title." (".$myWMS.") ".self::getWmsMetadataUrl($myWMS);
//reduce to 140 chars
- $tweetText = substr($tweetText, 0, 136)." ...";
+ $tweetText = substr($tweetText, 0, 136);
//push to twitter
$result = $twitter_wms->postTweet($tweetText);
//for each layer which was deleted
foreach ($oldLayerNameArray as $oldLayer) {
$twitter_layer = new twitter();
- $tweetText = "DELETED LAYER: " . $oldLayer['title']." (".$oldLayer['id'].") ".self::getLayerMetadataUrl($currentLayer->layer_id)." ".$currentLayer->layer_abstract;
+ $tweetText = "DELETED LAYER: " . $oldLayer['title']." (".$oldLayer['id'].") ".self::getLayerMetadataUrl($currentLayer->layer_id);
//reduce to 140 chars
- $tweetText = substr($tweetText, 0, 136)." ...";
+ $tweetText = substr($tweetText, 0, 136);
$result = $twitter_layer->postTweet($tweetText);
}
More information about the Mapbender_commits
mailing list