Skip to content

Commit

Permalink
Bugfix widgetloader.php works only in the root of OC installation. re…
Browse files Browse the repository at this point in the history
…verting some files!
  • Loading branch information
libasys committed Dec 19, 2012
1 parent 412fe40 commit 35c75cc
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 36 deletions.
2 changes: 1 addition & 1 deletion oc454/apps/files_sharing_widget/lib/widgethelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public static function loadTemplateReal($WIDTH="770",$HEIGHT="570",$TITLE='Zeus-
\n<link href=\"".OC_HELPER::makeURLAbsolute(OC::$WEBROOT).$getRelativeAppsPath."/files_sharing_widget/img/startup.png\" rel=\"apple-touch-startup-image\" />
\n<link href=\"".OC_HELPER::makeURLAbsolute(OC::$WEBROOT).$getRelativeAppsPath."/files_sharing_widget/img/homescreen.png\" rel=\"apple-touch-icon\" />
\n<script>var ownWidgetOptions = {crypt:'".$_GET['iToken']."',path:'".OC_HELPER::makeURLAbsolute(OC::$WEBROOT)."',appspath:'".$getRelativeAppsPath."',cssAddWidget:{'width':'".$WIDTH."','height':'".$HEIGHT."'}};</script>
\n<script src=\"".OC_HELPER::makeURLAbsolute(OC::$WEBROOT).$getRelativeAppsPath."/files_sharing_widget/widgetloader.php\" type=\"text/javascript\"></script>\n
\n<script src=\"".OC_HELPER::makeURLAbsolute(OC::$WEBROOT)."widgetloader.php\" type=\"text/javascript\"></script>\n
\n</head>
\n<body class=\"widgetbg\">
\n<div id=\"ownWidget-container\"></div>
Expand Down
2 changes: 1 addition & 1 deletion oc454/apps/files_sharing_widget/templates/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
cssAddWidget:{'width':670,'height':400}
}
</script>
<script src="<?php echo OC_HELPER::makeURLAbsolute(OC::$WEBROOT) . '/' . $getRelativeAppsPath . '/'; ?>files_sharing_widget/widgetloader.php" type="text/javascript"></script></textarea>
<script src="<?php echo OC_HELPER::makeURLAbsolute(OC::$WEBROOT); ?>/widgetloader.php" type="text/javascript"></script></textarea>

</fieldset>
<!-- Dialogs -->
Expand Down
34 changes: 0 additions & 34 deletions oc454/apps/files_sharing_widget/widgetloader.php

This file was deleted.

16 changes: 16 additions & 0 deletions oc454/widgetloader.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php
/**
* ownCloud - Picture Widget
*
* @author Sebastian Doell
* @copyright 2012 Sebastian Doell <sebastian.doell ad libasys dot de>
*
*
*/

$pathload= "apps/files_sharing_widget/js/widget.full.js";

header ("Content-type: text/javascript");
readfile($pathload);

?>

0 comments on commit 35c75cc

Please sign in to comment.