Browse Source

Move appid to external file

tags/v5.0.0alpha1
Lukas Reschke 11 years ago
parent
commit
48949ba04a
3 changed files with 5 additions and 4 deletions
  1. 0
    2
      settings/apps.php
  2. 3
    1
      settings/js/apps-custom.php
  3. 2
    1
      settings/templates/apps.php

+ 0
- 2
settings/apps.php View File

@@ -26,10 +26,8 @@ OC_App::loadApps();

// Load the files we need
OC_Util::addStyle( "settings", "settings" );
OC_Util::addScript( "settings", "apps" );
OC_App::setActiveNavigationEntry( "core_apps" );


function app_sort( $a, $b ) {

if ($a['active'] != $b['active']) {

+ 3
- 1
settings/js/apps-custom.php View File

@@ -21,4 +21,6 @@ $combinedApps = OC_App::listAllApps();
foreach($combinedApps as $app) {
echo("appData_".$app['id']."=".json_encode($app));
echo("\n");
}
}

echo ("var appid =\"".$_GET['appid']."\";");

+ 2
- 1
settings/templates/apps.php View File

@@ -3,7 +3,8 @@
* This file is licensed under the Affero General Public License version 3 or later.
* See the COPYING-README file.
*/?>
<script type="text/javascript" src="<?php echo OC_Helper::linkToRoute('apps_custom');?>"></script>
<script type="text/javascript" src="<?php echo OC_Helper::linkToRoute('apps_custom');?>?appid=<?php echo $_['appid']; ?>"></script>
<script type="text/javascript" src="<?php echo OC_Helper::linkTo('settings/js', 'apps.js');?>"></script>

<div id="controls">
<a class="button" target="_blank" href="http://owncloud.org/dev/apps/getting-started/"><?php echo $l->t('Add your App');?></a>

Loading…
Cancel
Save