Skip to content
Permalink
Browse files
Automatically update project files in qgis server
  • Loading branch information
mhugent committed Jan 17, 2013
1 parent 90eac0f commit 0a971c3df64b69810356b00ab2704a9308026b22
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/mapserver/qgsconfigcache.cpp
@@ -18,6 +18,7 @@
#include "qgsconfigcache.h"
#include "qgslogger.h"
#include "qgsmslayercache.h"
#include "qgsprojectfiletransform.h"
#include "qgsprojectparser.h"
#include "qgssldparser.h"
#include <QCoreApplication>
@@ -115,6 +116,9 @@ QgsConfigParser* QgsConfigCache::insertConfiguration( const QString& filePath )
}
else if ( documentElem.tagName() == "qgis" )
{
//convert project file to current version first
QgsProjectFileTransform pt( *configDoc, QgsProjectVersion( documentElem.attribute( "version" ) ) );
pt.updateRevision( QgsProjectVersion( QGis::QGIS_VERSION ) );
configParser = new QgsProjectParser( configDoc, filePath );
}
else

0 comments on commit 0a971c3

Please sign in to comment.