Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/2bb8ed2938cc1ae8015ab66ce4ad2700b994379c?style=split&whitespace=ignore-eol
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
6 additions and
2 deletions
src/domain/UBW3CWidget.cpp
@ -246,6 +246,8 @@ QString UBW3CWidget::createNPAPIWrapperInDir(const QString& pUrl, const QDir& pD
const QString & pName )
const QString & pName )
{
{
QString url = pUrl ;
QString url = pUrl ;
// if the file name start with file:// it has be removed because QFileInfo doesn't support this form
url = url . replace ( " file:// " , " " ) ;
QString name = pName ;
QString name = pName ;
QFileInfo fi ( url ) ;
QFileInfo fi ( url ) ;
@ -299,9 +301,11 @@ QString UBW3CWidget::createNPAPIWrapperInDir(const QString& pUrl, const QDir& pD
}
}
widgetLibraryDir . mkpath ( widgetLibraryPath ) ;
widgetLibraryDir . mkpath ( widgetLibraryPath ) ;
if ( fi . exists ( ) ) {
if ( fi . exists ( ) ) {
QString target = widgetLibraryPath + " / " + fi . fileName ( ) ;
QString target = widgetLibraryPath + " / " + fi . fileName ( ) ;
QFile : : copy ( pUrl , target ) ;
QString source = pUrl ;
source . replace ( " file:// " , " " ) ;
QFile : : copy ( source , target ) ;
}
}
QFile configFile ( widgetLibraryPath + " /config.xml " ) ;
QFile configFile ( widgetLibraryPath + " /config.xml " ) ;