Replaces 'standalone' with 'isApplication'
authorMatthias Schmidt <gravatronics@live.com>
Sat, 31 Dec 2011 20:22:59 +0000 (21:22 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 31 Dec 2011 20:22:59 +0000 (21:22 +0100)
34 files changed:
XSD/package.xsd
XSD/packageUpdateServer.xsd
com.woltlab.wcf/package.xml
wcfsetup/install/files/acp/style/wcf.css
wcfsetup/install/files/acp/templates/packageList.tpl
wcfsetup/install/files/acp/templates/packageListDetailed.tpl
wcfsetup/install/files/acp/templates/packageStartInstall.tpl
wcfsetup/install/files/acp/templates/packageUninstallationDependencies.tpl
wcfsetup/install/files/acp/templates/packageUpdateSearch.tpl
wcfsetup/install/files/acp/templates/packageUpdateSearchResult.tpl
wcfsetup/install/files/acp/templates/packageView.tpl
wcfsetup/install/files/icon/packageApplication1.svg [new file with mode: 0644]
wcfsetup/install/files/icon/packageStandalone1.svg [deleted file]
wcfsetup/install/files/lib/acp/form/PackageUpdateSearchForm.class.php
wcfsetup/install/files/lib/acp/page/CacheListPage.class.php
wcfsetup/install/files/lib/acp/page/PackageListDetailedPage.class.php
wcfsetup/install/files/lib/acp/page/PackageListPage.class.php
wcfsetup/install/files/lib/data/option/OptionEditor.class.php
wcfsetup/install/files/lib/data/package/Package.class.php
wcfsetup/install/files/lib/data/style/StyleEditor.class.php
wcfsetup/install/files/lib/system/WCFACP.class.php
wcfsetup/install/files/lib/system/WCFSetup.class.php
wcfsetup/install/files/lib/system/cache/source/DiskCacheSource.class.php
wcfsetup/install/files/lib/system/package/ACPTemplatesFileHandler.class.php
wcfsetup/install/files/lib/system/package/PackageArchive.class.php
wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php
wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php
wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php
wcfsetup/install/files/lib/system/package/plugin/ACPTemplatePackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/FilePackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/SQLPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/TemplatePackageInstallationPlugin.class.php
wcfsetup/setup/db/install.sql

index 67ed0b3cf549095ed94c29e18bf6402242066af7..dec100fac7a25799453113a75e10ee0824e6bcc6 100644 (file)
@@ -86,7 +86,7 @@
                                </xs:complexType>
                        </xs:element>
                        <xs:element name="packageurl" type="xs:anyURI" minOccurs="0" maxOccurs="1" />
-                       <xs:element name="standalone" type="woltlab_boolean" minOccurs="0" maxOccurs="1" />
+                       <xs:element name="isapplication" type="woltlab_boolean" minOccurs="0" maxOccurs="1" />
                        <xs:element name="isunique" type="woltlab_boolean" minOccurs="0" maxOccurs="1" />
                        <xs:element name="version" type="woltlab_varchar" minOccurs="1" maxOccurs="1" />
                        <xs:element name="date" type="xs:date" minOccurs="1" maxOccurs="1" />
index 6ed4c11cdb8ca3ab180ee2dabaaf0e53f24a933b..1fd23938126c8b73fef977f802f4edc10c60ca86 100644 (file)
@@ -34,7 +34,7 @@
                                <xs:element ref="packagedescription" />
                                <xs:choice minOccurs="0">
                                        <xs:element ref="plugin" />
-                                       <xs:element ref="standalone" />
+                                       <xs:element ref="isapplication" />
                                </xs:choice>
                        </xs:sequence>
                </xs:complexType>
@@ -49,8 +49,8 @@
        <!-- plugin element -->
        <xs:element name="plugin" type="woltlab_varchar" />
        
-       <!-- standalone element -->
-       <xs:element name="standalone" type="woltlab_boolean" />
+       <!-- isapplication element -->
+       <xs:element name="isapplication" type="woltlab_boolean" />
        
        <!-- author information element -->
        <xs:element name="authorInformation">
index cec7d322c92f81bac8b46e2adc863429cd5c8307..a5a894902228f2d1c9c522aa5a3a34f653ac4180 100644 (file)
@@ -3,7 +3,7 @@
        <packageinformation>
                <packagename>WoltLab Community Framework</packagename>
                <packagedescription>Free web-framework, designed and developed for complex community applications.</packagedescription>
-               <standalone>1</standalone>
+               <isapplication>1</isapplication>
                <isunique>1</isunique>
                <version>2.0.0 Alpha 1</version> <!-- codename: maelstrom -->
                <date>2011-05-19</date>
index deb4208fc98e340574c03bd5c9155e137400c1f4..f25fb4cf802a0e90c43cf651788fb4eafbc1295a 100644 (file)
@@ -3637,15 +3637,15 @@ input[type='button'][disabled='disabled'],
 
 /* ############## ACP Package List ############## */
 
-/* -- -- -- Package Standalone -- -- -- */
+/* -- -- -- Application Package -- -- -- */
 
 /* Globals */
 
-.infoPackageStandalone {
+.infoPackageApplication {
        position: relative;
 }
 
-.infoPackageStandalone img.packageStandaloneIcon {
+.infoPackageApplication img.packageApplicationIcon {
        position: absolute;
        top: 30px;
        left: 25px;
@@ -3653,12 +3653,12 @@ input[type='button'][disabled='disabled'],
        height: 96px;
 }
 
-.infoPackageStandalone div {
+.infoPackageApplication div {
        margin-bottom: -15px;
        margin-left: 30px;
 }
 
-.infoPackageStandalone footer {
+.infoPackageApplication footer {
        position: relative;
        right: -15px;
        bottom: -15px;
@@ -3796,14 +3796,14 @@ input[type='button'][disabled='disabled'],
 
 /* -- -- -- Package Footers -- -- -- */
 
-.infoPackageStandalone footer nav,
+.infoPackageApplication footer nav,
 .infoPackagePlugin footer nav {
        text-align: right;
 }
 
 @media screen and (min-width: 480px), screen and (min-device-width: 480px) {
        
-       .infoPackageStandalone footer nav,
+       .infoPackageApplication footer nav,
        .infoPackagePlugin footer nav {
                opacity: 0;
                
@@ -3814,7 +3814,7 @@ input[type='button'][disabled='disabled'],
                transition: opacity .1s linear;
        }
        
-       .infoPackageStandalone:hover footer nav,
+       .infoPackageApplication:hover footer nav,
        .infoPackagePlugin:hover footer nav {
                opacity: 1;
        }
@@ -3823,9 +3823,9 @@ input[type='button'][disabled='disabled'],
 
 @media screen and (max-width: 480px), screen and (max-device-width: 480px) {
        
-       .infoPackageStandalone footer nav,
+       .infoPackageApplication footer nav,
        .infoPackagePlugin footer nav,
-       .infoPackageStandalone:hover footer nav,
+       .infoPackageApplication:hover footer nav,
        .infoPackagePlugin:hover footer nav {
                opacity: 1;
        }
index 87002962cbefa3234c06d18e8488aa5a9f27bf63..cbe3667785e9351dc064e8c205b513cd65dc134f 100644 (file)
@@ -23,7 +23,7 @@
 </script>
 
 <header class="mainHeading">
-       <img src="{@RELATIVE_WCF_DIR}icon/packageStandalone1.svg" alt="" />
+       <img src="{@RELATIVE_WCF_DIR}icon/packageApplication1.svg" alt="" />
        <hgroup>
                <h1>{lang}wcf.acp.package.list{/lang}</h1>
        </hgroup>
                </hgroup>
                
                {foreach from=$applications key=packageID item=package}
-                       <fieldset class="infoPackageStandalone">
+                       <fieldset class="infoPackageApplication">
                                <legend>{$package->getName()}</legend>
                                
-                               <img src="{@RELATIVE_WCF_DIR}icon/wcfIcon1.svg" alt="" title="{$package->getName()}" class="packageStandaloneIcon" />
+                               <img src="{@RELATIVE_WCF_DIR}icon/wcfIcon1.svg" alt="" title="{$package->getName()}" class="packageApplicationIcon" />
                                
                                <div>
                                        <dl>
 <div class="contentFooter">
        <nav>
                <ul class="largeButtons">
-                       <li><a href="{link controller='PackageListDetailed'}{/link}" title="{lang}wcf.acp.menu.link.package.list{/lang}"><img src="{@RELATIVE_WCF_DIR}icon/packageStandalone1.svg" alt="" /> <span>detailed package list</span></a></li>
+                       <li><a href="{link controller='PackageListDetailed'}{/link}" title="{lang}wcf.acp.menu.link.package.list{/lang}"><img src="{@RELATIVE_WCF_DIR}icon/packageApplication1.svg" alt="" /> <span>detailed package list</span></a></li>
                </ul>
        </nav>
 </div>
index 8d38a267370da6f1b6853e88fc5e6dbb3287eab1..d94343c132df443c5c4f5c7f4040c3b4b363f056 100644 (file)
@@ -11,7 +11,7 @@
 </script>
 
 <header class="mainHeading">
-       <img src="{@RELATIVE_WCF_DIR}icon/packageStandalone1.svg" alt="" />
+       <img src="{@RELATIVE_WCF_DIR}icon/packageApplication1.svg" alt="" />
        <hgroup>
                <h1>{lang}wcf.acp.package.list{/lang}</h1>
        </hgroup>
@@ -73,8 +73,8 @@
                                                </td>
                                                <td class="columnID"><p>{@$package->packageID}</p></td>
                                                <td class="columnIcon">
-                                                       {if $package->standalone}
-                                                               <img src="{@RELATIVE_WCF_DIR}icon/packageStandalone1.svg" alt="" title="{lang}wcf.acp.package.list.standalone{/lang}" class="balloonTooltip" />
+                                                       {if $package->isApplication}
+                                                               <img src="{@RELATIVE_WCF_DIR}icon/packageApplication1.svg" alt="" title="{lang}wcf.acp.package.list.isApplication{/lang}" class="balloonTooltip" />
                                                        {elseif $package->isPlugin()}
                                                                <img src="{@RELATIVE_WCF_DIR}icon/packagePlugin1.svg" alt="" title="{lang}wcf.acp.package.list.plugin{/lang}" class="balloonTooltip" />
                                                        {else}
index 0b8b80aa139503e96afbcf8c73240dcd90bc1cff..34f98ee90accc1cd594a0dced0c14d558453dbcf 100644 (file)
@@ -21,7 +21,7 @@
 <div class="contentHeader">
        <nav>
                <ul class="largeButtons">
-                       <li><a href="{link controller='PackageList'}{/link}" title="{lang}wcf.acp.menu.link.package.list{/lang}"><img src="{@RELATIVE_WCF_DIR}icon/packageStandalone1.svg" alt="" /> <span>{lang}wcf.acp.menu.link.package.list{/lang}</span></a></li>
+                       <li><a href="{link controller='PackageList'}{/link}" title="{lang}wcf.acp.menu.link.package.list{/lang}"><img src="{@RELATIVE_WCF_DIR}icon/packageApplication1.svg" alt="" /> <span>{lang}wcf.acp.menu.link.package.list{/lang}</span></a></li>
                        
                        {event name='largeButtons'}
                </ul>
index 9f05aa68921f762b99a87f71628a0b53068acd03..c2dda8f6bcfe1471774596c7214a30e35e6f4fd0 100644 (file)
                                        </td>
                                        <td class="columnID"><p>{@$package.packageID}</p></td>
                                        <td class="columnIcon">
-                                               {if $package.standalone}
-                                                       <img src="{@RELATIVE_WCF_DIR}icon/packageStandalone1.svg" alt="" title="{lang}wcf.acp.package.list.standalone{/lang}" class="balloonTooltip" />
+                                               {if $package.isApplication}
+                                                       <img src="{@RELATIVE_WCF_DIR}icon/packageApplication1.svg" alt="" title="{lang}wcf.acp.package.list.isApplication{/lang}" class="balloonTooltip" />
                                                {elseif $package.parentPackageID}
                                                        <img src="{@RELATIVE_WCF_DIR}icon/packagePlugin1.svg" alt="" title="{lang}wcf.acp.package.list.plugin{/lang}" class="balloonTooltip" />
                                                {else}
index da50bf35fcce7ffe848f2545868f3e54c858ac94..95d412b2afed82d7d637df8871d79eedfcc51854 100644 (file)
@@ -97,7 +97,7 @@
                                <dl>
                                        <dt>{lang}wcf.acp.packageUpdate.search.type{/lang}</dt>
                                        <dd>
-                                               <label><input type="checkbox" name="standalone" value="1" {if $standalone == 1}checked="checked" {/if}/> {lang}wcf.acp.packageUpdate.search.type.standalone{/lang}</label> 
+                                               <label><input type="checkbox" name="isApplication" value="1" {if $isApplication == 1}checked="checked" {/if}/> {lang}wcf.acp.packageUpdate.search.type.isApplication{/lang}</label> 
                                        </dd>
                                        <dd>
                                                <label><input type="checkbox" name="plugin" value="1" {if $plugin == 1}checked="checked" {/if}/> {lang}wcf.acp.packageUpdate.search.type.plugin{/lang}</label> 
index 0dc59368f37f1a4923ed3352e1270906f911d6a8..0521b765fcdb811c33d9964e8d3a67a2535cf9f8 100644 (file)
@@ -19,8 +19,8 @@
                        <div class="messageInner container-{cycle name='styles' values='1,2'}">
                                <hgroup class="subHeading">
                                        <h1>
-                                               {if $package.standalone == 1}
-                                                       <img src="{@RELATIVE_WCF_DIR}icon/packageStandalone1.svg" alt="" title="{lang}wcf.acp.package.list.standalone{/lang}" class="balloonTooltip" />
+                                               {if $package.isApplication == 1}
+                                                       <img src="{@RELATIVE_WCF_DIR}icon/packageApplication1.svg" alt="" title="{lang}wcf.acp.package.list.isApplication{/lang}" class="balloonTooltip" />
                                                {elseif $package.plugin != ''}
                                                        <img src="{@RELATIVE_WCF_DIR}icon/packagePlugin1.svg" alt="" title="{lang}wcf.acp.package.list.plugin{/lang}" class="balloonTooltip" />
                                                {else}
index f6ab9fd515e9ce6c51794b55955d082fa7109b47..ad3a026dd62049f3e35b31e52b7d54dfea5b4490 100644 (file)
@@ -9,7 +9,7 @@
 </script>
 
 <header class="mainHeading">
-       <img src="{@RELATIVE_WCF_DIR}icon/packageStandalone1.svg" alt="" /><!-- ToDo: Add possibility to show a custom app icon if given! -->
+       <img src="{@RELATIVE_WCF_DIR}icon/packageApplication1.svg" alt="" /><!-- ToDo: Add possibility to show a custom app icon if given! -->
        <hgroup>
                <h1>{$package->getName()}</h1>
                <h2>{$package->packageDescription}</h2>
                                                                                </td>
                                                                                <td class="columnID"><p>{@$requiredPackage.packageID}</p></td>
                                                                                <td class="columnIcon">
-                                                                                       {if $requiredPackage.standalone}
-                                                                                               <img src="{@RELATIVE_WCF_DIR}icon/packageStandalone1.svg" alt="" title="{lang}wcf.acp.package.list.standalone{/lang}" class="balloonTooltip" />
+                                                                                       {if $requiredPackage.isApplication}
+                                                                                               <img src="{@RELATIVE_WCF_DIR}icon/packageApplication1.svg" alt="" title="{lang}wcf.acp.package.list.isApplication{/lang}" class="balloonTooltip" />
                                                                                        {elseif $requiredPackage.parentPackageID}
                                                                                                <img src="{@RELATIVE_WCF_DIR}icon/packagePlugin1.svg" alt="" title="{lang}wcf.acp.package.list.plugin{/lang}" class="balloonTooltip" />
                                                                                        {else}
                                                                                </td>
                                                                                <td class="columnID"><p>{@$dependentPackage.packageID}</p></td>
                                                                                <td class="columnIcon">
-                                                                                       {if $dependentPackage.standalone}
-                                                                                               <img src="{@RELATIVE_WCF_DIR}icon/packageStandalone1.svg" alt="" title="{lang}wcf.acp.package.list.standalone{/lang}" class="balloonTooltip" />
+                                                                                       {if $dependentPackage.isApplication}
+                                                                                               <img src="{@RELATIVE_WCF_DIR}icon/packageApplication1.svg" alt="" title="{lang}wcf.acp.package.list.isApplication{/lang}" class="balloonTooltip" />
                                                                                        {elseif $dependentPackage.parentPackageID}
                                                                                                <img src="{@RELATIVE_WCF_DIR}icon/packagePlugin1.svg" alt="" title="{lang}wcf.acp.package.list.plugin{/lang}" class="balloonTooltip" />
                                                                                        {else}
 {foreach from=$dependentPackages item=dependentPackage}
        {if $dependentPackage.package != 'com.woltlab.wcf' && $dependentPackage.packageID == PACKAGE_ID}
                {assign var=noDependentIsActive value=false}
-               {* TODO: maybe show users that this package can't be uninstalled because a dependent package is the active standalone application *}
+               {* TODO: maybe show users that this package can't be uninstalled because a dependent package is the active application *}
        {/if}
 {/foreach}
 
                        <ul class="largeButtons">
                                {content}
                                        {if PACKAGE_ID != $package->packageID}
-                                               {if $package->standalone && $package->package != 'com.woltlab.wcf'}
+                                               {if $package->isApplication && $package->package != 'com.woltlab.wcf'}
                                                        <li><a href="{@RELATIVE_WCF_DIR}{$package->packageDir}acp/index.php{@SID_ARG_1ST}" title="{lang}wcf.acp.package.view.button.makeActive{/lang}"><img src="{@RELATIVE_WCF_DIR}icon/packageACP1.svg" alt="" /> <span>{lang}wcf.acp.package.view.button.makeActive{/lang}</span></a></li>
                                                {/if}
                                                {if $__wcf->session->getPermission('admin.system.package.canUninstallPackage') && $noDependentIsActive}
diff --git a/wcfsetup/install/files/icon/packageApplication1.svg b/wcfsetup/install/files/icon/packageApplication1.svg
new file mode 100644 (file)
index 0000000..f1b2e20
--- /dev/null
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>\r
+<!--<?xml-stylesheet type="text/css" href="svg.css"?>-->\r
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\r
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px" viewBox="0 0 16 16" xml:space="preserve">\r
+       \r
+       <title>Package Standalone</title>\r
+       <desc>Package Standalone Icon</desc>\r
+       \r
+       <!--\r
+               @author         Harald Szekely \r
+               @copyright      2011 WoltLab GmbH \r
+               @license        GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> \r
+       --> \r
+       \r
+       <defs>\r
+               <style type="text/css">\r
+                       <![CDATA[\r
+                               .Upper1 {fill: #666;}\r
+                               .Lower1 {fill: #fff;}\r
+                       ]]>\r
+               </style>\r
+       </defs>\r
+       \r
+       <g id="IconPackageStandalone">\r
+               <g class="Lower1">\r
+                       <path id="Front1" style="fill-rule: evenodd; clip-rule: evenodd;" d="M14,5H1v10h13V5z M12.984375,14H2.015625L2,6\r
+                               h11L12.984375,14z"/>\r
+                       <polygon id="Upside1" style="fill-rule: evenodd; clip-rule: evenodd;" points="12.5,2.5 2.5,2.5 1,4.75 14,4.75"/>\r
+               </g>\r
+               <g class="Upper1">\r
+                       <path id="Front2" style="fill-rule: evenodd; clip-rule: evenodd;" d="M14,4H1v10h13V4z M12.984375,13H2.015625L2,5h11\r
+                               L12.984375,13z"/>\r
+                       <polygon id="Upside2" style="fill-rule: evenodd; clip-rule: evenodd;" points="12.5,1.5 2.5,1.5 1,3.75 14,3.75"/>\r
+               </g>\r
+       </g>\r
+</svg>\r
diff --git a/wcfsetup/install/files/icon/packageStandalone1.svg b/wcfsetup/install/files/icon/packageStandalone1.svg
deleted file mode 100644 (file)
index f1b2e20..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>\r
-<!--<?xml-stylesheet type="text/css" href="svg.css"?>-->\r
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\r
-<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px" viewBox="0 0 16 16" xml:space="preserve">\r
-       \r
-       <title>Package Standalone</title>\r
-       <desc>Package Standalone Icon</desc>\r
-       \r
-       <!--\r
-               @author         Harald Szekely \r
-               @copyright      2011 WoltLab GmbH \r
-               @license        GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> \r
-       --> \r
-       \r
-       <defs>\r
-               <style type="text/css">\r
-                       <![CDATA[\r
-                               .Upper1 {fill: #666;}\r
-                               .Lower1 {fill: #fff;}\r
-                       ]]>\r
-               </style>\r
-       </defs>\r
-       \r
-       <g id="IconPackageStandalone">\r
-               <g class="Lower1">\r
-                       <path id="Front1" style="fill-rule: evenodd; clip-rule: evenodd;" d="M14,5H1v10h13V5z M12.984375,14H2.015625L2,6\r
-                               h11L12.984375,14z"/>\r
-                       <polygon id="Upside1" style="fill-rule: evenodd; clip-rule: evenodd;" points="12.5,2.5 2.5,2.5 1,4.75 14,4.75"/>\r
-               </g>\r
-               <g class="Upper1">\r
-                       <path id="Front2" style="fill-rule: evenodd; clip-rule: evenodd;" d="M14,4H1v10h13V4z M12.984375,13H2.015625L2,5h11\r
-                               L12.984375,13z"/>\r
-                       <polygon id="Upside2" style="fill-rule: evenodd; clip-rule: evenodd;" points="12.5,1.5 2.5,1.5 1,3.75 14,3.75"/>\r
-               </g>\r
-       </g>\r
-</svg>\r
index c0fc0c55e9ce19b7709cb72a654ac6a3e792c656..650248bb5d4cc5f82d05f96ceba39133e1fb3702 100644 (file)
@@ -69,14 +69,13 @@ class PackageUpdateSearchForm extends ACPForm {
        public $plugin = 1;
        
        /**
-        * indicates if standalone applications are searched
+        * indicates if applications are searched
         * @var integer
         */
-       public $standalone = 1;
+       public $isApplication = 1;
        
        /**
-        * indicates if packages that aren't plugins or standalone applications
-        * are searched
+        * indicates if packages that aren't plugins or applications are searched
         * @var integer
         */
        public $other = 0;
@@ -105,13 +104,13 @@ class PackageUpdateSearchForm extends ACPForm {
        public function readFormParameters() {
                parent::readFormParameters();
                
-               $this->ignoreUniques = $this->plugin = $this->standalone = 0;
+               $this->ignoreUniques = $this->plugin = $this->isApplication = 0;
                if (isset($_POST['packageUpdateServerIDs']) && is_array($_POST['packageUpdateServerIDs'])) $this->packageUpdateServerIDs = ArrayUtil::toIntegerArray($_POST['packageUpdateServerIDs']);
                if (isset($_POST['packageName'])) $this->packageName = StringUtil::trim($_POST['packageName']);
                if (isset($_POST['author'])) $this->author = StringUtil::trim($_POST['author']);
                if (isset($_POST['searchDescription'])) $this->searchDescription = intval($_POST['searchDescription']);
                if (isset($_POST['plugin'])) $this->plugin = intval($_POST['plugin']);
-               if (isset($_POST['standalone'])) $this->standalone = intval($_POST['standalone']);
+               if (isset($_POST['isApplication'])) $this->isApplication = intval($_POST['isApplication']);
                if (isset($_POST['other'])) $this->other = intval($_POST['other']);
                if (isset($_POST['ignoreUniques'])) $this->ignoreUniques = intval($_POST['ignoreUniques']);
        }
@@ -146,9 +145,9 @@ class PackageUpdateSearchForm extends ACPForm {
                // ignore already installed uniques
                if ($this->ignoreUniques == 1) $conditions->add("package NOT IN (SELECT package FROM wcf".WCF_N."_package WHERE isUnique = 1)");
                // package type
-               if (($this->plugin == 0 || $this->standalone == 0 || $this->other == 0) && ($this->plugin == 1 || $this->standalone == 1 || $this->other == 1)) {
-                       if ($this->standalone == 1) {
-                               $condition = 'standalone = 1';
+               if (($this->plugin == 0 || $this->isApplication == 0 || $this->other == 0) && ($this->plugin == 1 || $this->isApplication == 1 || $this->other == 1)) {
+                       if ($this->isApplication == 1) {
+                               $condition = 'isApplication = 1';
                                if ($this->plugin == 1) {
                                        $condition .= " OR plugin IN (SELECT package FROM wcf".WCF_N."_package)";
                                }
@@ -161,13 +160,13 @@ class PackageUpdateSearchForm extends ACPForm {
                        else if ($this->plugin == 1) {
                                $condition = "plugin IN (SELECT package FROM wcf".WCF_N."_package)";
                                if ($this->other == 1) { 
-                                       $condition .= " OR standalone = 0";
+                                       $condition .= " OR isApplication = 0";
                                }
                                
                                $conditions->add('('.$condition.')');
                        }
                        else if ($this->other) {
-                               $conditions->add("(standalone = 0 AND plugin = '')");
+                               $conditions->add("(isApplication = 0 AND plugin = '')");
                        }
                }
                
@@ -268,7 +267,7 @@ class PackageUpdateSearchForm extends ACPForm {
                        'packageName' => $this->packageName,
                        'searchDescription' => $this->searchDescription,
                        'author' => $this->author,
-                       'standalone' => $this->standalone,
+                       'isApplication' => $this->isApplication,
                        'plugin' => $this->plugin,
                        'other' => $this->other,
                        'packageUpdateServerIDs' => $this->packageUpdateServerIDs,
index 8b2f735654331df87b7c681531b75e80a9b0d360..1572c0c98a1aeac522cdff4fb0e475fcd144ca6b 100755 (executable)
@@ -78,7 +78,7 @@ class CacheListPage extends AbstractPage {
                        
                        $conditions = new PreparedStatementConditionBuilder();
                        $conditions->add("packageID IN (?)", array(PackageDependencyHandler::getDependencies()));
-                       $conditions->add("standalone = ?", array(1));
+                       $conditions->add("isApplication = ?", array(1));
                        
                        // get package dirs
                        $sql = "SELECT  packageDir
@@ -130,7 +130,7 @@ class CacheListPage extends AbstractPage {
                        
                        $conditions = new PreparedStatementConditionBuilder();
                        $conditions->add("packageID IN (?)", array(PackageDependencyHandler::getDependencies()));
-                       $conditions->add("standalone = ?", array(1));
+                       $conditions->add("isApplication = ?", array(1));
                        
                        // get package dirs
                        $sql = "SELECT  packageDir, packageName, instanceNo
index fabb7be423c826aa2dbdf8439cfb18339567545f..9b9475ccfb9b0bafef5269b6adedb0f1013e13c1 100644 (file)
@@ -39,7 +39,7 @@ class PackageListDetailedPage extends SortablePage {
        /**
         * @see wcf\page\SortablePage::$validSortFields
         */
-       public $validSortFields = array('packageID', 'package', 'packageDir', 'packageName', 'instanceNo', 'packageDescription', 'packageVersion', 'packageDate', 'packageURL', 'parentPackageID', 'isUnique', 'standalone', 'author', 'authorURL', 'installDate', 'updateDate');
+       public $validSortFields = array('packageID', 'package', 'packageDir', 'packageName', 'instanceNo', 'packageDescription', 'packageVersion', 'packageDate', 'packageURL', 'parentPackageID', 'isUnique', 'isApplication', 'author', 'authorURL', 'installDate', 'updateDate');
        
        /**
         * @see wcf\page\MultipleLinkPage::$objectListClassName
@@ -50,7 +50,7 @@ class PackageListDetailedPage extends SortablePage {
         * @see wcf\page\MultipleLinkPage::readObjects()
         */     
        protected function readObjects() {
-               $this->sqlOrderBy = 'package.'.($this->sortField == 'packageType' ? 'standalone '.$this->sortOrder.', package.parentPackageID '.$this->sortOrder : $this->sortField.' '.$this->sortOrder).($this->sortField != 'packageName' ? ', package.packageName ASC' : '');
+               $this->sqlOrderBy = 'package.'.($this->sortField == 'packageType' ? 'isApplication '.$this->sortOrder.', package.parentPackageID '.$this->sortOrder : $this->sortField.' '.$this->sortOrder).($this->sortField != 'packageName' ? ', package.packageName ASC' : '');
                
                parent::readObjects();
        }
index 8fa560c8e18720c836646d8dc31887630ada169b..76bf703c61142d47e2abf31f8516796e8c84adc4 100755 (executable)
@@ -43,7 +43,7 @@ class PackageListPage extends AbstractPage {
                
                // read applications
                $this->applicationList = new PackageList();
-               $this->applicationList->getConditionBuilder()->add("package.standalone = ?", array(1));
+               $this->applicationList->getConditionBuilder()->add("package.isApplication = ?", array(1));
                $this->applicationList->getConditionBuilder()->add("package.packageID <> ?", array(1));
                $this->applicationList->sqlLimit = 0;
                $this->applicationList->readObjects();
index 52a5399f99009a0db3a393a37803dd968f98246c..d40f81f69cc7949ff9935034af8c2a75b5d4be9c 100644 (file)
@@ -88,7 +88,7 @@ class OptionEditor extends DatabaseObjectEditor implements IEditableCachedObject
                // reset options.inc.php files
                $sql = "SELECT  package, packageID, packageDir
                        FROM    wcf".WCF_N."_package
-                       WHERE   standalone = ?";
+                       WHERE   isApplication = ?";
                $statement = WCF::getDB()->prepareStatement($sql);
                $statement->execute(array(1));
                while ($row = $statement->fetchArray()) {
index 2bb34de3a2e58821e21ef260a1790eeff432ed40..e47df20aa2d35f56241371576bf13757301cdef7 100644 (file)
@@ -467,7 +467,7 @@ class Package extends DatabaseObject {
        }
        
        /**
-        * Writes the config.inc.php for a standalone application.
+        * Writes the config.inc.php for an application.
         *
         * @param       integer         $packageID
         */
@@ -478,13 +478,13 @@ class Package extends DatabaseObject {
                $file->write("<?php\n");
                $currentPrefix = strtoupper(Package::getAbbreviation($package->package));
                
-               // get dependencies (only standalones)
+               // get dependencies (only spplications)
                $sql = "SELECT          package.*, CASE WHEN package.packageID = ? THEN 1 ELSE 0 END AS sortOrder 
                        FROM            wcf".WCF_N."_package_dependency package_dependency
                        LEFT JOIN       wcf".WCF_N."_package package
                        ON              (package.packageID = package_dependency.dependency)
                        WHERE           package_dependency.packageID = ?
-                                       AND package.standalone = 1
+                                       AND package.isApplication = 1
                                        AND package.packageDir <> ''
                        ORDER BY        sortOrder DESC,
                                        package_dependency.priority DESC";
@@ -560,7 +560,7 @@ class Package extends DatabaseObject {
        public static function getPluginList() {
                $pluginList = new PackageList();
                $pluginList->getConditionBuilder()->add("package.packageID IN (?)", array(PackageDependencyHandler::getDependencies()));
-               $pluginList->getConditionBuilder()->add("package.standalone = ?", array(0));
+               $pluginList->getConditionBuilder()->add("package.isApplication = ?", array(0));
                
                return $pluginList;
        }
index d891c0b2f7795250f6c1ca6dfafce04d6a065592..153a0a69f2a6d290c9805728957c8c228518c110 100644 (file)
@@ -389,7 +389,7 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject
                                        $sql = "SELECT  *
                                                FROM    wcf".WCF_N."_package
                                                WHERE   package = ?
-                                                       AND standalone = ?";
+                                                       AND isApplication = ?";
                                        $statement = WCF::getDB()->prepareStatement($sql);
                                        $statement->execute(array(
                                                $package,
@@ -447,7 +447,7 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject
                                        $sql = "SELECT  *
                                                FROM    wcf".WCF_N."_package
                                                WHERE   package = ?
-                                                       AND standalone = ?";
+                                                       AND isApplication = ?";
                                        $statement = WCF::getDB()->prepareStatement($sql);
                                        $statement->execute(array(
                                                $package,
@@ -632,7 +632,7 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject
                        // get package dirs
                        $sql = "SELECT  package, packageDir
                                FROM    wcf".WCF_N."_package
-                               WHERE   standalone = 1
+                               WHERE   isApplication = 1
                                        AND (packageDir <> '' OR package = 'com.woltlab.wcf')";
                        $statement = WCF::getDB()->prepareStatement($sql);
                        $statement->execute();
index 76142f5e4d85830b1486484d5972fd3e0b9dd0a0..2d969be8875f5f4933c14274ceee8d19b58c312c 100644 (file)
@@ -130,7 +130,7 @@ class WCFACP extends WCF {
                $packages = CacheHandler::getInstance()->get('packages');
                if (isset($_REQUEST['packageID'])) $packageID = intval($_REQUEST['packageID']);
                
-               if (!isset($packages[$packageID]) || !$packages[$packageID]['standalone']) {
+               if (!isset($packages[$packageID]) || !$packages[$packageID]['isApplication']) {
                        // package id is invalid
                        $packageID = self::getWcfPackageID();
                }
@@ -158,7 +158,7 @@ class WCFACP extends WCF {
        }
        
        /**
-        * Returns a list of all installed standalone packages.
+        * Returns a list of all installed applications packages.
         * 
         * @return      array
         */
@@ -166,7 +166,7 @@ class WCFACP extends WCF {
                $quickAccessPackages = array();
                $packages = CacheHandler::getInstance()->get('packages');
                foreach ($packages as $packageID => $package) {
-                       if (!$package->standalone) break;
+                       if (!$package->isApplication) break;
                        if ($package->package != 'com.woltlab.wcf') {
                                $quickAccessPackages[] = $package;
                        }
index 9457492f14419bbd7f694ac697cdab5b339a5ef5..b9de01b9b3711ec81103cc4dbae93ec80c4ecd90 100644 (file)
@@ -1059,7 +1059,7 @@ class WCFSetup extends WCF {
        }
        
        /**
-        * Gets the package name of the first standalone application in WCFSetup.tar.gz.
+        * Gets the package name of the first application in WCFSetup.tar.gz.
         */
        protected static function getPackageName() {
                // get package name
index 5ba9642a015359e5ddbf381172b51bb4a7842fa6..f08ebeeb7b814721fd8922b2db8588ce6d38ec0e 100644 (file)
@@ -199,7 +199,7 @@ class DiskCacheSource implements ICacheSource {
                        LEFT JOIN       wcf".WCF_N."_package package
                        ON              (package.packageID = package_dependency.dependency)
                        WHERE           package_dependency.packageID = ?
-                                       AND standalone = ?";
+                                       AND isApplication = ?";
                $statement = WCF::getDB()->prepareStatement($sql);
                $statement->execute(array(
                        PACKAGE_ID,
index e74dc846979dbc0ec532c99ba03e0bbf648e3908..09573f9cb8356ba609c49e0b37cb8480e53f0356 100644 (file)
@@ -37,7 +37,7 @@ class ACPTemplatesFileHandler extends PackageInstallationFileHandler {
                                // get by other packages registered files
                                $conditions = new PreparedStatementConditionBuilder();
                                $conditions->add("packageID <> ?", array($packageID));
-                               $conditions->add("packageID IN (SELECT packageID FROM wcf".WCF_N."_package WHERE packageDir = ? AND standalone = ?)", array($this->packageInstallation->getPackage()->packageDir, 0));
+                               $conditions->add("packageID IN (SELECT packageID FROM wcf".WCF_N."_package WHERE packageDir = ? AND isApplication = ?)", array($this->packageInstallation->getPackage()->packageDir, 0));
                                $conditions->add("templateName IN (?)", array($fileNames));
                                
                                $sql = "SELECT          *
@@ -52,11 +52,11 @@ class ACPTemplatesFileHandler extends PackageInstallationFileHandler {
                                }
                                
                                // check if files from installing package are in conflict with already installed files
-                               if (!$this->packageInstallation->getPackage()->standalone && count($lockedFiles) > 0) {
+                               if (!$this->packageInstallation->getPackage()->isApplication && count($lockedFiles) > 0) {
                                        foreach ($fileNames as $key => $file) {
                                                if (isset($lockedFiles[$file]) && $packageID != $lockedFiles[$file]) {
                                                        $owningPackage = new Package($lockedFiles[$file]);
-                                                       throw new SystemException("A non-standalone package can't overwrite template files. Only an update from the package which owns the template can do that. (Package '".$this->packageInstallation->getPackage()->getPackage()."' tries to overwrite template '".$file."', which is owned by package '".$owningPackage->package."')");
+                                                       throw new SystemException("A non-application package can't overwrite template files. Only an update from the package which owns the template can do that. (Package '".$this->packageInstallation->getPackage()->getPackage()."' tries to overwrite template '".$file."', which is owned by package '".$owningPackage->package."')");
                                                }
                                        }
                                }
index a8f132aa677896033339ef1a64d3753200bb95ce..fab8bae64d2c90c7036346da4d6251cbcab41488 100644 (file)
@@ -201,8 +201,8 @@ class PackageArchive {
                                        $this->packageInfo[$name][$languageCode] = $element->nodeValue;
                                break;
                                
-                               case 'standalone':
-                                       $this->packageInfo['standalone'] = intval($element->nodeValue);
+                               case 'isapplication':
+                                       $this->packageInfo['isApplication'] = intval($element->nodeValue);
                                break;
                                
                                case 'plugin':
@@ -376,7 +376,7 @@ class PackageArchive {
                }
                
                // set default values
-               if (!isset($this->packageInfo['standalone'])) $this->packageInfo['standalone'] = 0;
+               if (!isset($this->packageInfo['isApplication'])) $this->packageInfo['isApplication'] = 0;
                if (!isset($this->packageInfo['plugin'])) $this->packageInfo['plugin'] = '';
                if (!isset($this->packageInfo['packageURL'])) $this->packageInfo['packageURL'] = '';
                
index 701a88d8f70a8b6c5052a1966b6eb5e0747e8340..2eb37a2770e90719ff130c1b86c90210256dbe99 100644 (file)
@@ -219,7 +219,7 @@ class PackageInstallationDispatcher {
                        $this->queue = new PackageInstallationQueue($this->queue->queueID);
                        $this->package = null;
                        
-                       if ($package->standalone) {
+                       if ($package->isApplication) {
                                $host = RouteHandler::getHost();
                                $path = RouteHandler::getPath(array('acp'));
                                
@@ -235,7 +235,7 @@ class PackageInstallationDispatcher {
                        $this->installPackageParent();
                }
                
-               if ($this->getPackage()->standalone && $this->getPackage()->package != 'com.woltlab.wcf' && $this->getAction() == 'install') {
+               if ($this->getPackage()->isApplication && $this->getPackage()->package != 'com.woltlab.wcf' && $this->getAction() == 'install') {
                        if (empty($this->getPackage()->packageDir)) {
                                $document = $this->promptPackageDir();
                                if ($document !== null && $document instanceof form\FormDocument) {
@@ -259,8 +259,8 @@ class PackageInstallationDispatcher {
         * Sets parent package and rebuilds dependencies for both.
         */     
        protected function installPackageParent() {
-               // do not handle parent package if current package is standalone or does not have a plugin tag while within installation process
-               if ($this->getArchive()->getPackageInfo('standalone') || $this->getAction() != 'install' || !$this->getArchive()->getPackageInfo('plugin')) {
+               // do not handle parent package if current package is an application or does not have a plugin tag while within installation process
+               if ($this->getArchive()->getPackageInfo('isApplication') || $this->getAction() != 'install' || !$this->getArchive()->getPackageInfo('plugin')) {
                        return;
                }
                
@@ -421,7 +421,7 @@ class PackageInstallationDispatcher {
        }
        
        /**
-        * Prompts for a text input for package directory (applies for standalone-applications only)
+        * Prompts for a text input for package directory (applies for applications only)
         *
         * @return      FormDocument
         */
index bc58e6494645b5ae109d520b14ab5c0c89c6b264..3340c5c0b6dc7a3893afcdce5444f2ed79616d75 100644 (file)
@@ -393,7 +393,7 @@ class PackageInstallationNodeBuilder {
                                'packageVersion' => $this->installation->getArchive()->getPackageInfo('version'),
                                'packageDate' => $this->installation->getArchive()->getPackageInfo('date'),
                                'packageURL' => $this->installation->getArchive()->getPackageInfo('packageURL'),
-                               'standalone' => $this->installation->getArchive()->getPackageInfo('standalone'),
+                               'isApplication' => $this->installation->getArchive()->getPackageInfo('isApplication'),
                                'author' => $this->installation->getArchive()->getAuthorInfo('author'),
                                'authorURL' => $this->installation->getArchive()->getAuthorInfo('authorURL') !== null ? $this->installation->getArchive()->getAuthorInfo('authorURL') : '',
                                'installDate' => TIME_NOW,
@@ -480,7 +480,7 @@ class PackageInstallationNodeBuilder {
                
                $instructions = ($this->installation->getAction() == 'install') ? $this->installation->getArchive()->getInstallInstructions() : $this->installation->getArchive()->getUpdateInstructions();
                foreach ($instructions as $pip) {
-                       if (isset($pip['attributes']['run']) && ($pip['attributes']['run'] == 'standalone')) {
+                       if (isset($pip['attributes']['run']) && ($pip['attributes']['run'] == 'isApplication')) {
                                $this->parentNode = $this->node;
                                $this->node = $this->getToken();
                                $this->sequenceNo = 0;
index b76916fa597d7237ef6bf5ac3b86b9be61817389..47faa5fd4d95a2fbe3a91f5b9f1453a69485aaa7 100644 (file)
@@ -239,7 +239,7 @@ abstract class PackageUpdateDispatcher {
                // define default values
                $packageInfo = array(
                        'packageDescription' => '',
-                       'standalone' => 0,
+                       'isApplication' => 0,
                        'plugin' => '',
                        'author' => '',
                        'authorURL' => '',
@@ -258,8 +258,8 @@ abstract class PackageUpdateDispatcher {
                                        $packageInfo['packageDescription'] = $element->nodeValue;
                                break;
                                
-                               case 'standalone':
-                                       $packageInfo['standalone'] = intval($element->nodeValue);
+                               case 'isapplication':
+                                       $packageInfo['isApplication'] = intval($element->nodeValue);
                                break;
                                
                                case 'plugin':
@@ -396,7 +396,7 @@ abstract class PackageUpdateDispatcher {
                                        'packageDescription' => $packageData['packageDescription'],
                                        'author' => $packageData['author'],
                                        'authorURL' => $packageData['authorURL'],
-                                       'standalone' => $packageData['standalone'],
+                                       'isApplication' => $packageData['isApplication'],
                                        'plugin' => $packageData['plugin']
                                ));
                        }
@@ -409,7 +409,7 @@ abstract class PackageUpdateDispatcher {
                                        'packageDescription' => $packageData['packageDescription'],
                                        'author' => $packageData['author'],
                                        'authorURL' => $packageData['authorURL'],
-                                       'standalone' => $packageData['standalone'],
+                                       'isApplication' => $packageData['isapplication'],
                                        'plugin' => $packageData['plugin']
                                ));
                                
@@ -575,7 +575,7 @@ abstract class PackageUpdateDispatcher {
                // get existing packages and their versions
                $existingPackages = array();
                $sql = "SELECT  packageID, package, instanceNo, packageDescription,
-                               packageVersion, packageDate, author, authorURL, standalone,
+                               packageVersion, packageDate, author, authorURL, isApplication,
                                CASE WHEN instanceName <> '' THEN instanceName ELSE packageName END AS packageName
                        FROM    wcf".WCF_N."_package";
                $statement = WCF::getDB()->prepareStatement($sql);
@@ -636,11 +636,11 @@ abstract class PackageUpdateDispatcher {
                        $updates[$packageID]['version'] = end($updates[$packageID]['versions']);
                }
                
-               // remove requirements of standalone packages
+               // remove requirements of application packages
                if ($removeRequirements) {
                        foreach ($existingPackages as $identifier => $instances) {
                                foreach ($instances as $instance) {
-                                       if ($instance['standalone'] && isset($updates[$instance['packageID']])) {
+                                       if ($instance['isApplication'] && isset($updates[$instance['packageID']])) {
                                                $updates = self::removeUpdateRequirements($updates, $updates[$instance['packageID']]['version']['servers'][0]['packageUpdateVersionID']);
                                        }
                                }
index d63f068cf76a08fb743107f7424b6f71d235401c..dd0e9b964ab73646bfe1af98eda5ba3c0b965e97 100644 (file)
@@ -78,7 +78,7 @@ class ACPTemplatePackageInstallationPlugin extends AbstractPackageInstallationPl
                if (count($templates) > 0) {
                        // delete template files
                        $packageDir = FileUtil::addTrailingSlash(FileUtil::getRealPath(WCF_DIR.$this->installation->getPackage()->packageDir));
-                       $deleteEmptyDirectories = $this->installation->getPackage()->standalone;
+                       $deleteEmptyDirectories = $this->installation->getPackage()->isApplication;
                        $this->installation->deleteFiles($packageDir, $templates, false, $deleteEmptyDirectories);
                        
                        // delete log entries
index c6489e76c108ce9ef4621a44b8c797012959e82f..8c5206f550b2b6c031a5c40157bada745da13d72 100644 (file)
@@ -39,8 +39,8 @@ class FilePackageInstallationPlugin extends AbstractPackageInstallationPlugin {
                                // use parents package dir
                                $dir = $this->installation->getPackage()->getParentPackage()->packageDir;
                        }
-                       else if ($this->installation->getPackage()->standalone == 1 && $this->installation->getPackage()->package != 'com.woltlab.wcf' && $this->installation->getAction() == 'install') {
-                               // standalone package
+                       else if ($this->installation->getPackage()->isApplication == 1 && $this->installation->getPackage()->package != 'com.woltlab.wcf' && $this->installation->getAction() == 'install') {
+                               // application
                                // prompt package dir
                                $dir = $this->promptPackageDir();
                        }
@@ -67,8 +67,8 @@ class FilePackageInstallationPlugin extends AbstractPackageInstallationPlugin {
                // extract content of files.tar
                $fileInstaller = $this->installation->extractFiles($packageDir, $sourceFile, $fileHandler);
                
-               // if this a standalone package, write config.inc.php for this package
-               if ($this->installation->getPackage()->standalone == 1 && $this->installation->getPackage()->package != 'com.woltlab.wcf' && $this->installation->getAction() == 'install') {
+               // if this a an application, write config.inc.php for this package
+               if ($this->installation->getPackage()->isApplication == 1 && $this->installation->getPackage()->package != 'com.woltlab.wcf' && $this->installation->getAction() == 'install') {
                        // touch file
                        $fileInstaller->touchFile(PackageInstallationDispatcher::CONFIG_FILE);
                        
index f3f1c01ace1def416a208d644070bb9f708187ad..9c2cf366109235546b9eeb1a8342f21991399032 100644 (file)
@@ -125,8 +125,8 @@ class LanguagePackageInstallationPlugin extends AbstractXMLPackageInstallationPl
                                        $languageEditor = new LanguageEditor($language);
                                        
                                        // import xml
-                                       // don't update language files if package is standalone
-                                       $languageEditor->updateFromXML($xml, $this->installation->getPackageID(), !$this->installation->getPackage()->standalone);
+                                       // don't update language files if package is an application
+                                       $languageEditor->updateFromXML($xml, $this->installation->getPackageID(), !$this->installation->getPackage()->isApplication);
                                        
                                        // add language to this package
                                        $addedLanguageIDArray[] = $language->languageID;
index a2c40e3f0fee1d934ed8099c288b9377d1dfd3e9..9e2b01306a85411d143d96b6946ef17f8059bac3 100644 (file)
@@ -36,8 +36,8 @@ class SQLPackageInstallationPlugin extends AbstractPackageInstallationPlugin {
                                $package = $package->getParentPackage();
                        }
                        
-                       if ($package->standalone == 1) {
-                               // package is standalone
+                       if ($package->isApplication == 1) {
+                               // package is application
                                $packageAbbr = Package::getAbbreviation($package->package);
                                $tablePrefix = WCF_N.'_'.$package->instanceNo.'_';
                                
index b77bc4582a28a29122048a32fd25ce5335226aa4..61693f32635e96b38ab3cae0c37642ea260de0d7 100644 (file)
@@ -63,7 +63,7 @@ class TemplatePackageInstallationPlugin extends AbstractPackageInstallationPlugi
                if (count($templates) > 0) {
                        // delete template files
                        $packageDir = FileUtil::addTrailingSlash(FileUtil::getRealPath(WCF_DIR.$this->installation->getPackage()->packageDir));
-                       $deleteEmptyDirectories = $this->installation->getPackage()->standalone;
+                       $deleteEmptyDirectories = $this->installation->getPackage()->isApplication;
                        $this->installation->deleteFiles($packageDir, $templates, false, $deleteEmptyDirectories);
                        
                        // delete log entries
index 29ecf6b71ac76c8275498cd59791348c20b70cf7..7077cbf0187c25ac63060d507fd39ccca7813dc9 100644 (file)
@@ -291,7 +291,7 @@ CREATE TABLE wcf1_package (
        packageURL VARCHAR(255) NOT NULL DEFAULT '',
        parentPackageID INT(10) NOT NULL DEFAULT 0,
        isUnique TINYINT(1) NOT NULL DEFAULT 0,
-       standalone TINYINT(1) NOT NULL DEFAULT 0,
+       isApplication TINYINT(1) NOT NULL DEFAULT 0,
        author VARCHAR(255) NOT NULL DEFAULT '',
        authorURL VARCHAR(255) NOT NULL DEFAULT '',
        KEY package (package)
@@ -398,7 +398,7 @@ CREATE TABLE wcf1_package_update (
        packageDescription VARCHAR(255) NOT NULL DEFAULT '',
        author VARCHAR(255) NOT NULL DEFAULT '',
        authorURL VARCHAR(255) NOT NULL DEFAULT '',
-       standalone TINYINT(1) NOT NULL DEFAULT 0,
+       isApplication TINYINT(1) NOT NULL DEFAULT 0,
        plugin VARCHAR(255) NOT NULL DEFAULT '',
        UNIQUE KEY packageUpdateServerID (packageUpdateServerID, package)
 );