Skip to content

Commit 7b6fb45

Browse files
authored
Merge pull request #279 from iMattPro/code-fixes
Fix typos in example code
2 parents 0ce34b5 + f55c9d0 commit 7b6fb45

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

development/extensions/skeleton_extension.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ In order to create an extension via the CLI, you need to open a console
108108
on your server and ``cd`` to the root directory of the phpBB board where
109109
you installed this extension:
110110

111-
.. code:: bash
111+
.. code:: console
112112
113113
$ cd ./path/to/phpBB
114114
115115
To create an extension, run:
116116

117-
.. code:: bash
117+
.. code:: console
118118
119119
$ ./bin/phpbbcli.php extension:create
120120
@@ -814,7 +814,7 @@ distribution such as unit tests and hidden Git files.
814814

815815
To run the build script, use the following console commands:
816816

817-
.. code:: bash
817+
.. code:: console
818818
819819
# Navigate to the root of your extension
820820
$ cd ./path/to/phpBB/vendor/package

development/extensions/tutorial_key_concepts.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -297,21 +297,21 @@ is already defined, and if not, then include your script and define the script.
297297

298298
.. code-block:: twig
299299
300-
{% if not $INCLUDED_JQUERYUIJS %}
300+
{% if not definition.INCLUDED_JQUERYUIJS %}
301301
{% INCLUDEJS '@vendor_extname/jquery-ui.js' %}
302-
{% DEFINE $INCLUDED_JQUERYUIJS = true %}
302+
{% DEFINE INCLUDED_JQUERYUIJS = true %}
303303
{% endif %}
304304
305305
Some example template variable definitions to use with common libraries (the common practice should be to name
306306
the variable definition after the library filename, e.g. highslide.js becomes HIGHSLIDEJS):
307307

308-
* HighSlide JS: ``$INCLUDED_HIGHSLIDEJS``
309-
* Font Awesome CSS: ``$INCLUDED_FONTAWESOMECSS``
310-
* ColorBox JS: ``$INCLUDED_COLORBOXJS``
311-
* ColPick JS: ``$INCLUDED_COLPICKJS``
312-
* MoTools JS: ``$INCLUDED_MOTOOLSJS``
313-
* Dojo JS: ``$INCLUDED_DOJOJS``
314-
* Angular JS: ``$INCLUDED_ANGULARJS``
308+
* HighSlide JS: ``INCLUDED_HIGHSLIDEJS``
309+
* Font Awesome CSS: ``INCLUDED_FONTAWESOMECSS``
310+
* ColorBox JS: ``INCLUDED_COLORBOXJS``
311+
* ColPick JS: ``INCLUDED_COLPICKJS``
312+
* MoTools JS: ``INCLUDED_MOTOOLSJS``
313+
* Dojo JS: ``INCLUDED_DOJOJS``
314+
* Angular JS: ``INCLUDED_ANGULARJS``
315315

316316
.. seealso::
317317

0 commit comments

Comments
 (0)